diff --git a/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh b/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh index 7fedf321fdb..aac5b637d2b 100755 --- a/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh +++ b/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh @@ -61,9 +61,8 @@ timeout $TIMEOUT bash -c restart_thread_1 2> /dev/null & timeout $TIMEOUT bash -c restart_thread_2 2> /dev/null & wait +sleep 3 -$CLICKHOUSE_CLIENT -q "SYSTEM RESTART REPLICAS" -sleep 2 $CLICKHOUSE_CLIENT -q "SELECT sum(n), count(n) FROM merge(currentDatabase(), '^replica_01108_') GROUP BY position(_table, 'tmp')"