diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-09-24 17:18:29 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2026-09-24 17:18:29 -0700 |
| commit | 5d2f3a326340ce760078556e431d3e920b220513 (patch) | |
| tree | b34a75f8cac3862bb8b126e73cdefd34f069a629 /indra | |
| parent | 399859ac1689d1936dda2c6983785d49b6549055 (diff) | |
await the connection close before continuing tests.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcorehttp/tests/wsserver_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |
