From 350c18e96f39448c6ad36d77e18c7586b232ef5d Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 22 Jun 2020 16:38:37 +0300 Subject: [PATCH] Better 00980_alter_settings test --- tests/queries/0_stateless/00980_alter_settings_race.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/00980_alter_settings_race.sh b/tests/queries/0_stateless/00980_alter_settings_race.sh index 3a9e854210d..edcff4c7f0c 100755 --- a/tests/queries/0_stateless/00980_alter_settings_race.sh +++ b/tests/queries/0_stateless/00980_alter_settings_race.sh @@ -26,7 +26,12 @@ done & sleep 4 -# we just test race conditions, not logic +# if we have too many simultaneous queries +until $CLICKHOUSE_CLIENT --query "SELECT 1" 2>/dev/null 1>/dev/null +do + sleep 0.5 +done + $CLICKHOUSE_CLIENT --query "SELECT 1" $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS table_for_concurrent_alter"