We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ec709 commit 4f4120dCopy full SHA for 4f4120d
test/test_worker_behavior.py
@@ -20,6 +20,24 @@ def test_worker_will_not_block_drop_database(autocommit_sess):
20
assert result is not None
21
assert result == 1
22
23
+ (pg_version,) = sess.execute(text(
24
+ """
25
+ select current_setting('server_version_num');
26
27
+ )).fetchone()
28
+
29
+ if int(pg_version) >= 130000:
30
31
+ autocommit_sess.execute(text("create database foo;"))
32
+ autocommit_sess.execute(text("drop database foo with (force);"))
33
34
+ (result,) = autocommit_sess.execute(text("""
35
+ select 1
36
+ """)).fetchone()
37
38
+ assert result is not None
39
+ assert result == 1
40
41
42
def test_success_when_worker_is_up(sess):
43
"""net.check_worker_is_up should not return anything when the worker is running"""
0 commit comments