2018-04-28 09:02:39 +00:00
|
|
|
RERUN_ERRORS = [
|
2018-05-30 15:41:00 +00:00
|
|
|
"can't receive further commands",
|
2018-04-28 09:02:39 +00:00
|
|
|
'Original error: Error: ESOCKETTIMEDOUT',
|
|
|
|
"The server didn't respond in time.",
|
|
|
|
'An unknown server-side error occurred while processing the command.',
|
2018-05-23 13:02:45 +00:00
|
|
|
'Could not proxy command to remote server. Original error: Error: socket hang up',
|
|
|
|
'The server returned an invalid or incomplete response.',
|
|
|
|
'502 Bad Gateway',
|
|
|
|
'Unexpected server error',
|
2018-05-25 17:29:07 +00:00
|
|
|
'504 Gateway Time-out',
|
|
|
|
'Internal Server Error',
|
2018-05-28 13:39:59 +00:00
|
|
|
'Invalid message: ERROR Internal Server Error',
|
2018-05-31 13:18:49 +00:00
|
|
|
'ERROR The test with session id'
|
2019-07-03 14:29:01 +00:00
|
|
|
"Message: 'CreateMultiaccountButton' is not found on screen",
|
2018-05-30 20:42:23 +00:00
|
|
|
"503 Service Unavailable",
|
2018-07-06 11:10:48 +00:00
|
|
|
"object has no attribute",
|
|
|
|
"[Errno 104] Connection reset by peer",
|
2018-07-13 10:56:36 +00:00
|
|
|
"Sauce could not start your job",
|
2018-07-16 17:18:44 +00:00
|
|
|
"HTTP Error 303",
|
2018-08-27 18:24:51 +00:00
|
|
|
"http.client.RemoteDisconnected: Remote end closed connection without response",
|
2018-10-06 12:00:30 +00:00
|
|
|
"[Errno 110] Connection timed out",
|
|
|
|
"replacement transaction underpriced",
|
2020-04-06 16:21:23 +00:00
|
|
|
"StaleElementReferenceException",
|
|
|
|
"No System TLS"
|
2018-04-28 09:02:39 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def should_rerun_test(test_error):
|
|
|
|
for rerun_error in RERUN_ERRORS:
|
|
|
|
if rerun_error in test_error:
|
|
|
|
return True
|
|
|
|
return False
|