From 82b528ee3012d587c65b2d82bdce76a8016f9ad3 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 24 Apr 2019 22:10:22 -0700 Subject: [PATCH] tsan fix for the IXWebSocketServerTest test, where there's a data race for connectionId --- test/IXWebSocketServerTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/IXWebSocketServerTest.cpp b/test/IXWebSocketServerTest.cpp index 2099278b..d5cd437f 100644 --- a/test/IXWebSocketServerTest.cpp +++ b/test/IXWebSocketServerTest.cpp @@ -204,9 +204,8 @@ TEST_CASE("Websocket_server", "[websocket_server]") // Give us 500ms for the server to notice that clients went away ix::msleep(500); - REQUIRE(connectionId == "foobarConnectionId"); - server.stop(); + REQUIRE(connectionId == "foobarConnectionId"); REQUIRE(server.getClients().size() == 0); } }