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