From a91cb620f42073713914da19e37c76ae8469e9ed Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Wed, 21 Feb 2024 08:48:06 -0500 Subject: [PATCH] Workaround for slow GitHub runners --- tests/DMAPI/BasicOperation/Test.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/DMAPI/BasicOperation/Test.dm b/tests/DMAPI/BasicOperation/Test.dm index e0cc3d2ba4..6eecddfaa7 100644 --- a/tests/DMAPI/BasicOperation/Test.dm +++ b/tests/DMAPI/BasicOperation/Test.dm @@ -33,8 +33,11 @@ world.log << "file check 1" fdel("test_event_output.txt") + + var/start_time = world.timeofday world.TgsTriggerEvent("test_event", list("asdf"), FALSE) - if(fexists("test_event_output.txt")) + + if((world.timeofday - start_time) <= 50 && fexists("test_event_output.txt")) FailTest("Expected test_event_output.txt to not exist here", "test_fail_reason.txt") world.log << "sleep2"