File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1224,7 +1224,7 @@ def _test_reconnect_delay():
1224
1224
1225
1225
tries = 3
1226
1226
results = []
1227
- reconnect_time = 12
1227
+ reconnect_time = 45
1228
1228
while tries :
1229
1229
# Check the delay
1230
1230
timer = timeit .Timer (_test_reconnect_delay )
@@ -1236,8 +1236,9 @@ def _test_reconnect_delay():
1236
1236
if results [0 ] < reconnect_time :
1237
1237
break
1238
1238
tries -= 1
1239
- self .assertTrue (results [0 ] > 3 and results [0 ] < reconnect_time ,
1240
- "3 <= result < 12, was {0}" .format (results ))
1239
+ self .assertTrue (results [0 ] < reconnect_time ,
1240
+ "best time: {} > expected: {}, others: {}" .format (
1241
+ results [0 ], reconnect_time , results ))
1241
1242
1242
1243
# Check reconnect stops when successful
1243
1244
config = tests .get_mysql_config ()
You can’t perform that action at this time.
0 commit comments