mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Revert "Enlarge the race window for some test cases"
This reverts commit 2a84d2597469d272794a1fb5fb43c6260f335195. Broke regression test on test_hwm.cpp.
This commit is contained in:
parent
0bc669b106
commit
d190325e4d
@ -255,9 +255,7 @@ int test_inproc_bind_and_close_first (int send_hwm, int /* recv_hwm */)
|
||||
int main (void)
|
||||
{
|
||||
setup_test_environment();
|
||||
|
||||
no_race_tests_please() ;
|
||||
|
||||
|
||||
int count;
|
||||
|
||||
// Default values are 1000 on send and 1000 one receive, so 2000 total
|
||||
|
@ -222,8 +222,6 @@ int main (void)
|
||||
{
|
||||
setup_test_environment ();
|
||||
|
||||
no_race_tests_please() ;
|
||||
|
||||
void *ctx = zmq_ctx_new ();
|
||||
assert (ctx);
|
||||
// Control socket receives terminate command from main over inproc
|
||||
|
@ -263,12 +263,6 @@ void setup_test_environment()
|
||||
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
|
||||
# endif
|
||||
#endif
|
||||
zmq_lb_race_window_2_size = 1 ;
|
||||
}
|
||||
|
||||
void no_race_tests_please()
|
||||
{
|
||||
zmq_lb_race_window_2_size = 0 ;
|
||||
}
|
||||
|
||||
// Provide portable millisecond sleep
|
||||
|
Loading…
x
Reference in New Issue
Block a user