diff options
author | Andrew Brookins <andrew.brookins@redislabs.com> | 2020-07-14 04:30:53 +0000 |
---|---|---|
committer | Andrew Brookins <andrew.brookins@redislabs.com> | 2020-07-14 04:30:53 +0000 |
commit | 7dfcd3bfffc20dcee30cd047bb527112f28b1e5d (patch) | |
tree | bcd0ad632302eb88c947c529bcf19035a61ca02c | |
parent | 59bb043253638c927c3f324523fc3fd529803aaf (diff) | |
download | redis-py-7dfcd3bfffc20dcee30cd047bb527112f28b1e5d.tar.gz |
Attempt to fix a timing bug
-rw-r--r-- | tests/test_connection_pool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py index 40ac340..e6e8e58 100644 --- a/tests/test_connection_pool.py +++ b/tests/test_connection_pool.py @@ -143,8 +143,8 @@ class TestBlockingConnectionPool(object): time.sleep(0.1) pool.release(c1) - Thread(target=target).start() start = time.time() + Thread(target=target).start() pool.get_connection('_') assert time.time() - start >= 0.1 |