From 5d2f3a326340ce760078556e431d3e920b220513 Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Thu, 24 Sep 2026 17:18:29 -0700 Subject: await the connection close before continuing tests. --- indra/llcorehttp/tests/wsserver_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/llcorehttp/tests/wsserver_test.cpp b/indra/llcorehttp/tests/wsserver_test.cpp index 4d442e3a45..62fa66a9cd 100644 --- a/indra/llcorehttp/tests/wsserver_test.cpp +++ b/indra/llcorehttp/tests/wsserver_test.cpp @@ -244,6 +244,7 @@ namespace tut ensure("started", manager.startServer(mName)); ensure_equals("no origin: connection opens", upgradeFrom(mPort, std::string()), 101); + ensure("server clears the abruptly closed raw connection", waitUntil([&]() { return server->getConnectionCount() == 0; })); TestWSClient client; ensure("no origin: client connects over the network", client.connect(mPort, std::string())); @@ -341,6 +342,7 @@ namespace tut ensure("started", manager.startServer(mName)); ensure_equals("empty origin: connection opens", upgradeFrom(mPort, std::string(), true), 101); + ensure("server clears the abruptly closed raw connection", waitUntil([&]() { return server->getConnectionCount() == 0; })); TestWSClient client; ensure("empty origin: client connects over the network", client.connect(mPort, std::string(), true)); -- cgit v1.3