Skip to content

Commit 6e0cdc6

Browse files
committed
tests: Give the lock sufficient release time
1 parent 0ffcb50 commit 6e0cdc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Sync/MutexTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function testLockFairness(): void
242242
// 释放锁
243243
$mutex->unlock();
244244

245-
Time::sleep(0.2);
245+
wait();
246246
$this->assertCount(5, $results);
247247
$this->assertEquals(0, $mutex->waitingCount());
248248
}

0 commit comments

Comments
 (0)