Skip to content

Commit

Permalink
tests: use zero port for performance test
Browse files Browse the repository at this point in the history
This is another occasional test failure due to EADDRINUSE that we can avoid.
  • Loading branch information
gdamore committed Jan 1, 2025
1 parent b7736d0 commit 38ae046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ nuts_tran_perf(const char *scheme)
nuts_set_logger(NNG_LOG_NOTICE);
NUTS_OPEN(s1);
NUTS_OPEN(s2);
NUTS_ADDR(addr, scheme);
NUTS_ADDR_ZERO(addr, scheme);
NUTS_PASS(nng_socket_set_ms(s1, NNG_OPT_SENDTIMEO, 100));
NUTS_PASS(nng_socket_set_ms(s2, NNG_OPT_SENDTIMEO, 100));
NUTS_PASS(nng_socket_set_ms(s1, NNG_OPT_RECVTIMEO, 100));
Expand Down

0 comments on commit 38ae046

Please sign in to comment.