From 670a310e2a772501a3f58b20a28dd85b896b9985 Mon Sep 17 00:00:00 2001 From: Saurabh Mishra <75273071+littlefermatlives@users.noreply.github.com> Date: Sun, 17 Mar 2024 01:06:26 +0530 Subject: [PATCH] update in test PessimisticLocking, check if CAS value before document locked is same as CAS value after the document gets unlocked (#151) Co-authored-by: littlefermatlives --- tests/KeyValueLockingTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/KeyValueLockingTest.php b/tests/KeyValueLockingTest.php index 33fcb8c0..ba118dbb 100644 --- a/tests/KeyValueLockingTest.php +++ b/tests/KeyValueLockingTest.php @@ -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()