diff --git a/e2e-tests/functions b/e2e-tests/functions index 9892f18ee..bee9f0422 100755 --- a/e2e-tests/functions +++ b/e2e-tests/functions @@ -622,7 +622,7 @@ compare_mysql_cmd() { run_mysql "$command" "$uri" \ >$tmp_dir/${command_id}.sql - if [ ! -s "$tmp_dir/${command_id}.sql" ]; then + if [[ ! -s "$tmp_dir/${command_id}.sql" || $(grep 'Unknown MySQL server host' "$tmp_dir/${command_id}.sql") ]]; then sleep 20 run_mysql "$command" "$uri" \ >$tmp_dir/${command_id}.sql