Merge pull request #61440 from ClickHouse/proper-fix-multiline

Fix `01599_multiline_input_and_singleline_comments` properly
This commit is contained in:
Alexey Milovidov 2024-03-16 13:38:21 +03:00 committed by GitHub
commit 063b91edb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@
log_user 0
# In some places `-timeout 1` is used to avoid expect to always wait for the whole timeout
set timeout 60
match_max 100000
@ -14,15 +13,23 @@ expect ":) "
# Make a query
send -- "SELECT 1\r"
expect -timeout 1 ":-] "
send -- "-- xxx\r"
expect -timeout 1 ":-] "
send -- ", 2\r"
expect -timeout 1 ":-] "
send -- ";\r"
send -- ";"
# For some reason this sleep is required for this test to work properly
sleep 1
send -- "\r"
expect {
"│ 1 │ 2 │" { }
timeout { exit 1 }
}
expect "│ 1 │ 2 │"
expect ":) "
send -- "\4"
expect eof
send -- ""
expect {
eof { exit 0 }
timeout { exit 1 }
}