Changed timeouts in test

This commit is contained in:
Alexey Milovidov 2020-06-08 15:35:57 +03:00
parent 138f3253ba
commit 7ba2d7e15f

View File

@ -5,12 +5,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
function test() function test()
{ {
for i in {1..50}; do for i in {1..250}; do
$CLICKHOUSE_CLIENT --query "SELECT groupArrayIfState(('Hello, world' AS s) || s || s || s || s || s || s || s || s || s, NOT throwIf(number > 50000000, 'Ok')) FROM system.numbers_mt GROUP BY number % 10"; $CLICKHOUSE_CLIENT --query "SELECT groupArrayIfState(('Hello, world' AS s) || s || s || s || s || s || s || s || s || s, NOT throwIf(number > 10000000, 'Ok')) FROM system.numbers_mt GROUP BY number % 10";
done done
} }
export -f test; export -f test;
# If the memory leak exists, it will lead to OOM fairly quickly. # If the memory leak exists, it will lead to OOM fairly quickly.
timeout 10 bash -c test 2>&1 | grep -o -F 'Ok' | uniq timeout 30 bash -c test 2>&1 | grep -o -F 'Ok' | uniq