aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test_utils.h
blob: 2abdf504b1687e9664b7ae9f3e0b0581113fdfee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

//    Do nothing if there is no support for IPv4
#define ASSUME_IP_V4_ENABLED                          \
    do {                                              \
        try {                                         \
            TNetworkAddress("192.168.0.42", 80);      \
        } catch (const TNetworkResolutionError& ex) { \
            Y_UNUSED(ex);                             \
            return;                                   \
        }                                             \
    } while (0)