We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a0686 commit cb101acCopy full SHA for cb101ac
test/high_availability/test_ha.py
@@ -992,9 +992,10 @@ def test_request_during_failover(self):
992
993
# Fail over
994
ha_tools.kill_primary()
995
+ sleep(5)
996
+
997
patience_seconds = 60
998
for _ in range(patience_seconds):
- sleep(1)
999
try:
1000
if ha_tools.ha_tools_debug:
1001
print 'Waiting for failover'
@@ -1003,6 +1004,8 @@ def test_request_during_failover(self):
1003
1004
break
1005
except ConnectionFailure:
1006
pass
1007
1008
+ sleep(1)
1009
else:
1010
self.fail("Problem with test: No new primary after %s seconds"
1011
% patience_seconds)
0 commit comments