aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test_utils.h
blob: 42725c0b9bdd4e25e2534a73da7f3515582d3c47 (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)