mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix 01370_client_autocomplete_word_break_characters test logic
AFAICS right now it works only because completion loaded too quickly, since `expect "_"` will block for 60 seconds if completion is not available.
This commit is contained in:
parent
454207a9a2
commit
dc76817329
@ -20,6 +20,7 @@ expect "SET max_distributed"
|
||||
|
||||
# Wait for suggestions to load, they are loaded in background
|
||||
set is_done 0
|
||||
set timeout 1
|
||||
while {$is_done == 0} {
|
||||
send -- "\t"
|
||||
expect {
|
||||
@ -27,10 +28,15 @@ while {$is_done == 0} {
|
||||
set is_done 1
|
||||
}
|
||||
default {
|
||||
sleep 1
|
||||
# expect "_" will wait for timeout,
|
||||
# if completion was not loaded it will fail,
|
||||
# and we will retry,
|
||||
# but for retry on timeout default should be reseted,
|
||||
# this is what for this block.
|
||||
}
|
||||
}
|
||||
}
|
||||
set timeout 60
|
||||
|
||||
send -- "\3\4"
|
||||
expect eof
|
||||
|
Loading…
Reference in New Issue
Block a user