(self, r)
| 208 | assert lock.local.token is None |
| 209 | |
| 210 | def test_extend_lock(self, r): |
| 211 | lock = self.get_lock(r, "foo", timeout=10) |
| 212 | assert lock.acquire(blocking=False) |
| 213 | assert 8000 < r.pttl("foo") <= 10000 |
| 214 | assert lock.extend(10) |
| 215 | assert 16000 < r.pttl("foo") <= 20000 |
| 216 | lock.release() |
| 217 | |
| 218 | def test_extend_lock_replace_ttl(self, r): |
| 219 | lock = self.get_lock(r, "foo", timeout=10) |