Commit de82cbe4 authored by Simon Giesecke's avatar Simon Giesecke

Problem: failing assertion on ZAP protocol error

Solution: do not assert on ZAP protocol error when connection was closed by client
parent 02e93492
......@@ -564,12 +564,15 @@ void test_curve_security_zap_unsuccessful (void *ctx,
ctx, valid_server_public, valid_client_public, valid_client_secret,
my_endpoint, server);
int events_received = 0;
#ifdef ZMQ_BUILD_DRAFT_API
expect_monitor_event_multiple (server_mon, expected_event, expected_err);
events_received =
expect_monitor_event_multiple (server_mon, expected_event, expected_err);
#endif
// there may be more than one ZAP request due to repeated attempts by the client
assert (1 <= zmq_atomic_counter_value (zap_requests_handled));
assert (events_received == 0
|| 1 <= zmq_atomic_counter_value (zap_requests_handled));
}
void test_curve_security_zap_protocol_error (void *ctx,
......
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