From 501c5a4bcd582ab3bb768da08ad6f4de1760752f Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 30 Jul 2026 18:01:34 -0300 Subject: [PATCH] ephemeral stuff --- test/unit_test.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/unit_test.c b/test/unit_test.c index fe364cb6..2339a55c 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -3992,9 +3992,8 @@ static void ph(struct mg_connection *c, int ev, void *ev_data) { static void test_poll(void) { int count = 0, i; struct mg_mgr mgr; - mg_mgr_init(&mgr); - mg_http_listen(&mgr, "http://127.0.0.1:42346", ph, - &count); // To prevent bind errors on Windows + mg_mgr_init(&mgr); // To prevent bind errors on Windows + mg_http_listen(&mgr, "http://127.0.0.1:32345", ph, &count); for (i = 0; i < 10; i++) mg_mgr_poll(&mgr, 0); ASSERT(count == 10); mg_mgr_free(&mgr); @@ -5479,8 +5478,8 @@ static void test_wakeup(void) { struct wudata *data; int i; mg_mgr_init(&mgr); // Initialise event manager - mg_log_set(MG_LL_DEBUG); // Set debug log level - c = mg_http_listen(&mgr, "http://127.0.0.1:42347", hwu, NULL); + mg_log_set(MG_LL_DEBUG); // To prevent bind errors on Windows + c = mg_http_listen(&mgr, "http://127.0.0.1:32346", hwu, NULL); mg_wakeup_init(&mgr); // Initialise wakeup socket pair data = (struct wudata *) calloc(1, sizeof(*data)); // wuthread owns it data->conn_id = c->id;