0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Problem: sporadic failure in test_curve_security_with_null_client_credentials

Solution: add workaround for EPIPE error
This commit is contained in:
Simon Giesecke 2017-08-04 11:35:00 +02:00
parent c191909c0e
commit 4fec4c99be

View File

@ -417,9 +417,11 @@ void test_curve_security_with_null_client_credentials (void *ctx,
close_zero_linger (client); close_zero_linger (client);
#ifdef ZMQ_BUILD_DRAFT_API #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 #endif
} }
@ -436,6 +438,8 @@ void test_curve_security_with_plain_client_credentials (void *ctx, void *server)
assert (rc == 0); assert (rc == 0);
expect_bounce_fail (server, client); expect_bounce_fail (server, client);
close_zero_linger (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, void test_curve_security_unauthenticated_message (char *my_endpoint,