redis_mutex 0.0.1.pre.alpha.pre.9 → 0.0.1.pre.alpha.pre.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/test/test_redis_mutex.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmFiZTIwM2E3NTMwMWViY2Q1ZWE2ZGVlNGRhYTNiYjNjNzc4YzMwYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDc1M2VhZDZjNzkxNWQzNDVjYTAzNjhhMjU1NTAzZDMzNDAwY2I0ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzMyYTRmNDA3NzZhMDFhMmFhZjBhN2M1ZTg4M2RlZWNmYmRmNGU3ZDZhYTYy
|
10
|
+
MTBkNzYwOTlmNTgwMmZlZTZiZTY1OWVkZjg1NDg5MGEyYjlmMTY0ZTAzMDkz
|
11
|
+
NWYyNDYwOTBjM2U4ZWEwMDExNjViMDI2NzBlOWM4OGRiMGRlNjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGQ2OWJlMmQzNTBkMWFjZTU1ODA2ODQyMmVlMzNiNTBiMDhiNjE3MGExNzU2
|
14
|
+
NjhjYWRlN2EzMDFlMWExMTBjOTdmN2QxZjRmMGUwNTdmMzZmNmY0YmM0MTY5
|
15
|
+
NjRkYzYyYzUwZTU5MTIxNGY5YWE4YmVkMzJjNWY1YzM0Nzc3OTY=
|
data/test/test_redis_mutex.rb
CHANGED
@@ -43,11 +43,11 @@ class TestRedisMutex < Minitest::Test
|
|
43
43
|
assert redis.get(key) == original_token
|
44
44
|
end
|
45
45
|
|
46
|
-
def
|
46
|
+
def test_locked_is_false_when_unlocked
|
47
47
|
assert !mutex_a.locked?
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
50
|
+
def test_locked_is_true_when_locked
|
51
51
|
mutex_a.acquire_lock(DEFAULT_TIMEOUT)
|
52
52
|
assert mutex_a.locked?
|
53
53
|
end
|