mirror of
https://github.com/dkam/suo.git
synced 2025-01-29 07:42:43 +00:00
add another test case for the nil refresh case
This commit is contained in:
@@ -216,6 +216,14 @@ module ClientTests
|
|||||||
# edge case with refresh lock in the middle
|
# edge case with refresh lock in the middle
|
||||||
assert_equal true, client.locked?(TEST_KEY)
|
assert_equal true, client.locked?(TEST_KEY)
|
||||||
|
|
||||||
|
client.clear(TEST_KEY)
|
||||||
|
|
||||||
|
assert_equal false, client.locked?(TEST_KEY)
|
||||||
|
|
||||||
|
client.refresh(TEST_KEY, lock2)
|
||||||
|
|
||||||
|
assert_equal true, client.locked?(TEST_KEY)
|
||||||
|
|
||||||
client.unlock(TEST_KEY, lock2)
|
client.unlock(TEST_KEY, lock2)
|
||||||
|
|
||||||
# now finally unlocked
|
# now finally unlocked
|
||||||
|
|||||||
Reference in New Issue
Block a user