From 38ae046fdfd2875855d5cae8722263c88e81067d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 31 Dec 2024 16:56:30 -0800 Subject: [PATCH] tests: use zero port for performance test This is another occasional test failure due to EADDRINUSE that we can avoid. --- src/testing/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/util.c b/src/testing/util.c index 2bb882b7a..d59171c21 100644 --- a/src/testing/util.c +++ b/src/testing/util.c @@ -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));