Skip to content

Commit

Permalink
update in test PessimisticLocking, check if CAS value before document…
Browse files Browse the repository at this point in the history
… locked is same as CAS value after the document gets unlocked (#151)

Co-authored-by: littlefermatlives <saurabh.mishra@couchbase.com>
  • Loading branch information
CosmicSaaurabh and CosmicSaaurabh authored Mar 16, 2024
1 parent 5c9cd1f commit 670a310
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/KeyValueLockingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ public function testPessimisticLockingWorkflow()
$this->assertNotEquals($lockedCas, $res->cas());

$collection->unlock($id, $lockedCas);

$res = $collection->get($id);
$this->assertEquals($lockedCas, $res->cas());
}

public function testUnlockingUnlockedDocumentThrowsDocNotLocked()
Expand Down

0 comments on commit 670a310

Please # to comment.