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 59f0d96 commit 4466496Copy full SHA for 4466496
1 file changed
tests/test.py
@@ -63,7 +63,7 @@ def _check_local_connection(self):
63
# The 1st test could fail while postgres boots
64
for attempt in range(10):
65
try:
66
- time.sleep(5)
+ time.sleep(15)
67
# Test local connections via unix socket work
68
self.assertEqual(
69
"1\n",
@@ -82,13 +82,13 @@ def _check_local_connection(self):
82
"test_user",
83
),
84
)
85
- except AssertionError:
+ except (AssertionError, ProcessExecutionError):
86
if attempt < 9:
87
print("Failure number {}. Retrying...".format(attempt))
88
else:
89
raise
90
91
- continue
+ return
92
93
def _check_password_auth(self, host=None):
94
"""Test connection with password auth work fine."""
0 commit comments