fix(test/once-flag): loosen requirement for tight timing (#5733)

This commit is contained in:
nerix
2024-11-24 22:46:59 +01:00
committed by GitHub
parent fd299f113c
commit 9b7007beda
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@
- Dev: Unified parsing of historic and live IRC messages. (#5678)
- Dev: 7TV's `entitlement.reset` is now explicitly ignored. (#5685)
- Dev: Qt 6.8 and later now default to the GDI fontengine. (#5710)
- Dev: Moved to condition variables when shutting down worker threads. (#5721)
- Dev: Moved to condition variables when shutting down worker threads. (#5721, #5733)
## 2.5.1
+1 -1
View File
@@ -48,7 +48,7 @@ TEST(OnceFlag, waitFor)
ASSERT_TRUE(stoppedFlag.waitFor(std::chrono::milliseconds{200}));
auto stop = std::chrono::system_clock::now();
ASSERT_LT(stop - start, std::chrono::milliseconds{150});
ASSERT_LT(stop - start, std::chrono::milliseconds{200});
start = std::chrono::system_clock::now();
ASSERT_TRUE(stoppedFlag.waitFor(std::chrono::milliseconds{1000}));