Fix bad test

This commit is contained in:
Alexey Milovidov 2020-11-29 21:21:46 +03:00
parent 484f7601d3
commit 7f1a8b15fd

View File

@ -22,7 +22,7 @@ do
break break
fi fi
if ! kill -0 -- $bg_query if ! kill -0 -- $bg_query 2>/dev/null
then then
# The SELECT sleep(1) query finished earlier that we could grep for it in the process list, but it should have run for at least one second. It is Ok. # The SELECT sleep(1) query finished earlier that we could grep for it in the process list, but it should have run for at least one second. It is Ok.
break break
@ -30,8 +30,6 @@ do
done done
ps auxw | grep -F -- '--password' | grep -F hello ||: ps auxw | grep -F -- '--password' | grep -F hello ||:
# Check that it is still running
kill -0 -- $bg_query
wait wait
# Once again with different syntax # Once again with different syntax
@ -46,7 +44,7 @@ do
break break
fi fi
if ! kill -0 -- $bg_query if ! kill -0 -- $bg_query 2>/dev/null
then then
# The SELECT sleep(1) query finished earlier that we could grep for it in the process list, but it should have run for at least one second. It is Ok. # The SELECT sleep(1) query finished earlier that we could grep for it in the process list, but it should have run for at least one second. It is Ok.
break break
@ -54,8 +52,6 @@ do
done done
ps auxw | grep -F -- '--password' | grep -F hello ||: ps auxw | grep -F -- '--password' | grep -F hello ||:
# Check that it is still running
kill -0 -- $bg_query
wait wait
$CLICKHOUSE_CLIENT --query "DROP USER user" $CLICKHOUSE_CLIENT --query "DROP USER user"