Skip to content

Commit

Permalink
Improve reliability of test_client_config_persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Jan 18, 2022
1 parent 386004c commit 4f6fcd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_blocking_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def test():
for tx in client.transaction():
with tx:
self.assertEqual(tx.query_single("SELECT 1"), 2)
# make this test more reliable by spending more time in
# the transaction to hit top concurrency sooner
time.sleep(0.01)

with self.create_client(
concurrency=10,
Expand Down

0 comments on commit 4f6fcd0

Please sign in to comment.