Skip to content

Commit 925dfb5

Browse files
committed
Stabilize test case timings
1 parent 466e447 commit 925dfb5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/AsyncTaskTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ public function testAsyncTimeout()
141141
$task = new AsyncTask($timeoutTask);
142142
$task->withTimeLimit(1)->start();
143143
// we wait for it to timeout
144-
$this->sleep(0.5);
145-
$this->sleep(0.5);
146-
$this->sleep(0.5);
144+
$this->sleep(0.4);
145+
$this->sleep(0.4);
146+
$this->sleep(0.4);
147+
$this->sleep(0.4);
147148
// should have timed out
148149
$this->assertFileExists($textFilePath, "The async task probably did not trigger its timeout handler because its timeout output file is not found.");
149150
$this->assertStringEqualsFile($textFilePath, $message);

0 commit comments

Comments
 (0)