diff --git a/tests/test_sockopt_hwm.cpp b/tests/test_sockopt_hwm.cpp index c35d92d5..129fd13e 100644 --- a/tests/test_sockopt_hwm.cpp +++ b/tests/test_sockopt_hwm.cpp @@ -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 (); }