You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/AsyncTaskTest.php
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,15 @@ public function testAsyncTimeoutIgnoreNoProblem()
177
177
// should have timed out
178
178
$this->assertFileDoesNotExist($textFilePath, "The async task timeout handler was inappropriately triggered (finishing a task before the time limit should not trigger timeouts).");
179
179
$this->assertNoNohupFile();
180
+
181
+
// repeat with no time limit
182
+
$task = newAsyncTask($timeoutTask);
183
+
$task->withoutTimeLimit()->start();
184
+
// we wait for it to timeout
185
+
$this->sleep(0.5);
186
+
// should have timed out
187
+
$this->assertFileDoesNotExist($textFilePath, "The async task timeout handler was inappropriately triggered (tasks without time limits should not trigger timeouts).");
0 commit comments