Skip to content

Commit

Permalink
add test for pool
Browse files Browse the repository at this point in the history
  • Loading branch information
wlwlwlzhang committed Sep 6, 2023
1 parent 50cd272 commit 2af4292
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ def insert_data():
[thread.start() for thread in threads]
[thread.join() for thread in threads]
t = db[table_name].count()
with db as tx:
if table_name in tx:
tx[table_name].drop()
assert t == target_num + 1, t
except SQLAlchemyError as e:
if "timeout expired" in str(e) or "Connection refused" in str(e):
Expand Down

0 comments on commit 2af4292

Please sign in to comment.