Commit 20bbd016 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2663 from sigiesec/fix-zap-assertion

Problem: failing assertion on ZAP protocol error
parents 2564c8e5 de82cbe4
......@@ -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