diff --git a/tests/queries/0_stateless/01317_no_password_in_command_line.sh b/tests/queries/0_stateless/01317_no_password_in_command_line.sh index 785d3b3751b..3e7145e0733 100755 --- a/tests/queries/0_stateless/01317_no_password_in_command_line.sh +++ b/tests/queries/0_stateless/01317_no_password_in_command_line.sh @@ -16,6 +16,7 @@ $CLICKHOUSE_CLIENT --user user --password hello --query "SELECT sleep(1)" & # Wait for query to start executing. At that time, the password should be cleared. while true; do sleep 0.1 + $CLICKHOUSE_CLIENT --query "SHOW PROCESSLIST" $CLICKHOUSE_CLIENT --query "SHOW PROCESSLIST" | grep -q 'SELECT sleep(1)' && break; done