mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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
This commit is contained in:
parent
735f2d972d
commit
6f5711e799
@ -130,7 +130,7 @@ TEST_CASE("[Window] sf::WindowBase", runDisplayTests())
|
|||||||
const auto event = windowBase.waitEvent(timeout);
|
const auto event = windowBase.waitEvent(timeout);
|
||||||
const auto elapsed = std::chrono::steady_clock::now() - startTime;
|
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())
|
if (elapsed <= timeout.toDuration())
|
||||||
CHECK(event);
|
CHECK(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user