From 6f5711e7990e0a6ba5d13537ad2794a22e9eaf10 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 18 Jun 2024 11:34:31 -0600 Subject: [PATCH] Decrease test precision to reduce flakey failures Sometimes this job fails. Perhaps it needs to be resructured or removed if we can't figure out how to make it more reliable. https://github.com/SFML/SFML/actions/runs/9569223439/job/26381302304?pr=3106#step:21:137 --- test/Window/WindowBase.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Window/WindowBase.test.cpp b/test/Window/WindowBase.test.cpp index cf8401d4c..98f46db84 100644 --- a/test/Window/WindowBase.test.cpp +++ b/test/Window/WindowBase.test.cpp @@ -130,7 +130,7 @@ TEST_CASE("[Window] sf::WindowBase", runDisplayTests()) const auto event = windowBase.waitEvent(timeout); const auto elapsed = std::chrono::steady_clock::now() - startTime; - REQUIRE(elapsed < (timeout + sf::milliseconds(50)).toDuration()); + REQUIRE(elapsed < (timeout + sf::milliseconds(100)).toDuration()); if (elapsed <= timeout.toDuration()) CHECK(event);