Skip to content

Commit

Permalink
Retry test_data.py::test_terminate_backend()
Browse files Browse the repository at this point in the history
It sometimes fails in CI.
  • Loading branch information
dlax committed Apr 3, 2024
1 parent 333ac2f commit 2f9d3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_terminate_backend(postgresql, data):
postgresql.execute("SELECT pg_sleep(1)")
(running,) = data.pg_get_activities()
assert data.pg_terminate_backend(running.pid)
assert not data.pg_get_activities()
retry(lambda: not data.pg_get_activities(), msg="some processes are still active")


def test_encoding(postgresql, data, execute):
Expand Down

0 comments on commit 2f9d3ed

Please sign in to comment.