Skip to content

Commit 4466496

Browse files
committed
Fix broken test
1 parent 59f0d96 commit 4466496

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _check_local_connection(self):
6363
# The 1st test could fail while postgres boots
6464
for attempt in range(10):
6565
try:
66-
time.sleep(5)
66+
time.sleep(15)
6767
# Test local connections via unix socket work
6868
self.assertEqual(
6969
"1\n",
@@ -82,13 +82,13 @@ def _check_local_connection(self):
8282
"test_user",
8383
),
8484
)
85-
except AssertionError:
85+
except (AssertionError, ProcessExecutionError):
8686
if attempt < 9:
8787
print("Failure number {}. Retrying...".format(attempt))
8888
else:
8989
raise
9090
else:
91-
continue
91+
return
9292

9393
def _check_password_auth(self, host=None):
9494
"""Test connection with password auth work fine."""

0 commit comments

Comments
 (0)