From 5954332f1690e95c329b991a25b2d89b9a44ef02 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 29 Dec 2023 15:49:44 -0800 Subject: [PATCH] Don't use deprecated functions in test suite. --- tests/multistress.c | 2 +- tests/reqstress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/multistress.c b/tests/multistress.c index 63feb666a..e4fa1f2fa 100644 --- a/tests/multistress.c +++ b/tests/multistress.c @@ -825,7 +825,6 @@ Main({ for (i = 0; i < ncases; i++) { nng_aio_stop(cases[i].woke); } - nng_closeall(); Test("MultiProtocol/Transport Stress", { Convey("All tests worked", { @@ -853,4 +852,5 @@ Main({ }); free(cases); + nng_fini(); }) diff --git a/tests/reqstress.c b/tests/reqstress.c index 18eac37ac..89190c645 100644 --- a/tests/reqstress.c +++ b/tests/reqstress.c @@ -310,7 +310,6 @@ Main({ nng_aio_stop(cases[i].time_aio); } nng_msleep(100); - nng_closeall(); Test("Req/Rep Stress", { Convey("All tests worked", { @@ -337,4 +336,5 @@ Main({ }); free(cases); + nng_fini(); })