diff options
author | Olly Cope <olly@ollycope.com> | 2018-01-29 14:44:11 +0000 |
---|---|---|
committer | Olly Cope <olly@ollycope.com> | 2018-01-29 14:44:11 +0000 |
commit | eb8dd814cb231f2cc6df58720bf567e0108dc114 (patch) | |
tree | 31e3a4a1429df4909a49d3cd9d9dbe7014be0a69 | |
parent | a73a2e4f9d49428b6b722cef4d938b3544e751ec (diff) | |
download | yoyo-eb8dd814cb231f2cc6df58720bf567e0108dc114.tar.gz |
tests: refactor assertion for clarity
-rw-r--r-- | yoyo/tests/test_backends.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yoyo/tests/test_backends.py b/yoyo/tests/test_backends.py index 743f12c..019ec26 100644 --- a/yoyo/tests/test_backends.py +++ b/yoyo/tests/test_backends.py @@ -119,7 +119,8 @@ class TestTransactionHandling(object): # to complete time.sleep(lock_duration * 0.2) with backend.lock(): - assert time.time() > t + lock_duration + delta = time.time() - t + assert delta >= lock_duration thread.join() |