Skip to content

Commit 2af4292

Browse files
author
wlwlwlzhang
committed
add test for pool
1 parent 50cd272 commit 2af4292

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ def insert_data():
621621
[thread.start() for thread in threads]
622622
[thread.join() for thread in threads]
623623
t = db[table_name].count()
624+
with db as tx:
625+
if table_name in tx:
626+
tx[table_name].drop()
624627
assert t == target_num + 1, t
625628
except SQLAlchemyError as e:
626629
if "timeout expired" in str(e) or "Connection refused" in str(e):

0 commit comments

Comments
 (0)