summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Brookins <andrew.brookins@redislabs.com>2020-07-14 04:30:53 +0000
committerAndrew Brookins <andrew.brookins@redislabs.com>2020-07-14 04:30:53 +0000
commit7dfcd3bfffc20dcee30cd047bb527112f28b1e5d (patch)
treebcd0ad632302eb88c947c529bcf19035a61ca02c
parent59bb043253638c927c3f324523fc3fd529803aaf (diff)
downloadredis-py-7dfcd3bfffc20dcee30cd047bb527112f28b1e5d.tar.gz
Attempt to fix a timing bug
-rw-r--r--tests/test_connection_pool.py2
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