Skip to content

Commit bcdcd66

Browse files
#47 If the lock has been acquired but it took longer than the timeout, accept this situation and do not consider it a timeout.
1 parent 994948b commit bcdcd66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/util/LoopTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public function testExecutionWithinTimeout()
6060
*/
6161
public function testExceedTimeout()
6262
{
63-
$this->expectException(TimeoutException::class);
64-
$this->expectExceptionMessage('Timeout of 1 seconds exceeded.');
63+
$this->expectNotToPerformAssertions();
6564

6665
$loop = new Loop(1);
6766
$loop->execute(function () use ($loop): void {

0 commit comments

Comments
 (0)