Added a test

This commit is contained in:
Alexey Milovidov 2020-07-06 01:45:28 +03:00
parent 05ee63b7f5
commit f2672233d9
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#!/usr/bin/expect -f
log_user 0
set timeout 1
match_max 100000
spawn clickhouse-client
expect ":) "
# Make a query
send -- "SET max_distributed"
expect "SET max_distributed"
# Wait for suggestions to load, they are loaded in background
set is_done 0
while {$is_done == 0} {
send -- "\t"
expect {
"_connections" {
set is_done 1
}
default {
sleep 1
}
}
}
send -- "\3\4"
expect eof