Skip to content

Commit 5ad1551

Browse files
committed
Adjust test sleeping
1 parent 6758d66 commit 5ad1551

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/TestTimeoutNormalTask.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public function __construct(
1717
public function execute(): void
1818
{
1919
// we have to sleep a bit to trigger the timeout
20+
// the test has a timeout of 1s, so we try to sleep for 1.5s
2021
sleep(1);
22+
usleep(500000);
2123
}
2224

2325
public function handleTimeout(): void

0 commit comments

Comments
 (0)