add another test case for the nil refresh case

This commit is contained in:
Nick Elser
2015-04-13 21:32:01 -07:00
parent 185327f59c
commit 2724ec6d9d

View File

@@ -216,6 +216,14 @@ module ClientTests
# edge case with refresh lock in the middle
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)
# now finally unlocked