Problem: test_decrease_when_full is disabled for Windows

Solution: add sleep after connecting such that sending is not started before connection succeeded
This commit is contained in:
Simon Giesecke 2019-03-01 06:30:44 -05:00
parent 828ed69d63
commit a95c4ab404

View File

@ -152,6 +152,10 @@ void test_decrease_when_full ()
zmq_bind (bind_socket, "inproc://a");
zmq_connect (connect_socket, "inproc://a");
// we must wait for the connect to succeed here, unfortunately we don't
// have monitoring events for inproc, so we just hope SETTLE_TIME suffices
msleep (SETTLE_TIME);
// Fill up to hwm
int send_count = test_fill_up_to_hwm (bind_socket, sndhwm);
@ -200,12 +204,7 @@ int main ()
UNITY_BEGIN ();
RUN_TEST (test_change_before_connected);
RUN_TEST (test_change_after_connected);
// TODO FIXME this test cases does not run reliably under Windows (at
// least for some VC++ and OS versions), this must be analyzed and fixed
#if !defined(_WIN32)
RUN_TEST (test_decrease_when_full);
#endif
return UNITY_END ();
}