diff --git a/tests/queries/0_stateless/02434_cancel_insert_when_client_dies.sh b/tests/queries/0_stateless/02434_cancel_insert_when_client_dies.sh index 85aa992d98c..2b27d88f23c 100755 --- a/tests/queries/0_stateless/02434_cancel_insert_when_client_dies.sh +++ b/tests/queries/0_stateless/02434_cancel_insert_when_client_dies.sh @@ -47,7 +47,7 @@ function thread_insert { # supress "Killed" messages from bash while true; do - export ID="$TEST_MARK$RANDOM" + export ID="$TEST_MARK$RANDOM-$RANDOM-$RANDOM" bash -c insert_data 2>&1| grep -Fav "Killed" done } diff --git a/tests/queries/0_stateless/02435_rollback_cancelled_queries.sh b/tests/queries/0_stateless/02435_rollback_cancelled_queries.sh index e4aec6503a4..640975f1ef7 100755 --- a/tests/queries/0_stateless/02435_rollback_cancelled_queries.sh +++ b/tests/queries/0_stateless/02435_rollback_cancelled_queries.sh @@ -61,7 +61,7 @@ function thread_insert { # supress "Killed" messages from bash while true; do - export ID="$TEST_MARK$RANDOM" + export ID="$TEST_MARK$RANDOM-$RANDOM-$RANDOM" bash -c insert_data 2>&1| grep -Fav "Killed" | grep -Fav "SESSION_IS_LOCKED" | grep -Fav "SESSION_NOT_FOUND" done }