Fixed race condition in test (once again)

This commit is contained in:
Alexey Milovidov 2019-08-24 15:18:03 +03:00
parent eeeaf8fbee
commit cd620d2de5
2 changed files with 1 additions and 2 deletions

View File

@ -2,6 +2,5 @@
1
1
1
finished 42 readonly SELECT 2, count() FROM system.numbers
1
44

View File

@ -30,7 +30,7 @@ ${CLICKHOUSE_CLIENT} --query_id=42 --query='SELECT 43' 2>&1 | grep -cF 'is alrea
# Trying to replace query of a different user
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL?query_id=42&replace_running_query=1" -d 'SELECT 1' | grep -cF 'is already running by user'
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "KILL QUERY WHERE query_id = '42' SYNC"
$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "KILL QUERY WHERE query_id = '42' SYNC" > /dev/null
wait
${CLICKHOUSE_CLIENT} --query_id=42 --query='SELECT 3, count() FROM system.numbers' 2>&1 | grep -cF 'was cancelled' &