Skip to content

Commit 68dc18d

Browse files
committed
tests: avoid overlapping local vars in shell_config
1 parent be3ebcc commit 68dc18d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/queries/shell_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function wait_for_queries_to_finish()
160160
{
161161
local max_tries="${1:-20}"
162162
# Wait for all queries to finish (query may still be running if a thread is killed by timeout)
163-
num_tries=0
163+
local num_tries=0
164164
while [[ $($CLICKHOUSE_CLIENT -q "SELECT count() FROM system.processes WHERE current_database=currentDatabase() AND query NOT LIKE '%system.processes%'") -ne 0 ]]; do
165165
sleep 0.5;
166166
num_tries=$((num_tries+1))

0 commit comments

Comments
 (0)