Skip to content

Commit dc62276

Browse files
committed
test: prove drop database with force works ok
1 parent e8ec709 commit dc62276

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_worker_behavior.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ def test_worker_will_not_block_drop_database(autocommit_sess):
2020
assert result is not None
2121
assert result == 1
2222

23+
autocommit_sess.execute(text("create database foo;"))
24+
autocommit_sess.execute(text("drop database foo with (force);"))
25+
26+
(result,) = autocommit_sess.execute(text("""
27+
select 1
28+
""")).fetchone()
29+
30+
assert result is not None
31+
assert result == 1
32+
2333

2434
def test_success_when_worker_is_up(sess):
2535
"""net.check_worker_is_up should not return anything when the worker is running"""

0 commit comments

Comments
 (0)