From 25b12dee7b33edd8ca0e092118964d267ab21182 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 20 Feb 2024 18:52:22 -0500 Subject: [PATCH] fix(test): wait for test thread to exit with 100ms timeout --- test/Thread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Thread.cpp b/test/Thread.cpp index 4cd8c6d..37b46cc 100644 --- a/test/Thread.cpp +++ b/test/Thread.cpp @@ -53,5 +53,6 @@ TEST_CASE("SThread::Create", "[thread]") { auto threadName = const_cast("TestThread"); auto threadParam = SMemAlloc(16, nullptr, 0, 0x0); REQUIRE(SThread::Create(threadProc, threadParam, thread, threadName, 0) != 0); + thread.Wait(100); } }