Commit 32085870 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2650 from sigiesec/connection-close-event-workaround

Problem: sporadic failure in test_curve_security_with_null_client_credentials
parents b92dc0a6 4fec4c99
......@@ -471,9 +471,11 @@ void test_curve_security_with_null_client_credentials (void *ctx,
close_zero_linger (client);
#ifdef ZMQ_BUILD_DRAFT_API
int event = get_monitor_event (server_mon, NULL, NULL, 0);
int err;
int event = get_monitor_event (server_mon, &err, NULL, 0);
assert (event == ZMQ_EVENT_HANDSHAKE_FAILED_ZMTP);
assert (event == ZMQ_EVENT_HANDSHAKE_FAILED_ZMTP
|| (event == ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL && err == EPIPE));
#endif
}
......@@ -490,6 +492,8 @@ void test_curve_security_with_plain_client_credentials (void *ctx, void *server)
assert (rc == 0);
expect_bounce_fail (server, client);
close_zero_linger (client);
// TODO add assertion here as in test_curve_security_with_null_client_credentials
}
void test_curve_security_unauthenticated_message (char *my_endpoint,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment