Skip to content

Commit 9d03738

Browse files
committed
chore(core): allow releasing lock after successful acquisition
The modified test should fail right now.
1 parent f37b842 commit 9d03738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Cache/LockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function test_lock_with_ttl(): void
7373
// No longer locked after another 30 min (total 1h)
7474
$clock->plus(Duration::minutes(30));
7575
$this->assertTrue($lock->acquire());
76-
$this->assertFalse($lock->release());
76+
$this->assertTrue($lock->release());
7777
}
7878

7979
public function test_lock_execution_without_timeout(): void

0 commit comments

Comments
 (0)