Merge pull request #50542 from azat/tests/fix-expect

Make 01565_query_loop_after_client_error slightly more robust
This commit is contained in:
Alexey Milovidov 2023-06-05 04:03:15 +03:00 committed by GitHub
commit 6241ea3514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,24 +24,24 @@ expect "\n:) "
send -- "DROP TABLE IF EXISTS t01565;\n"
# NOTE: this is important for -mn mode, you should send "\r" only after reading echoed command
expect "DROP"
expect "\r\n"
send -- "\r"
expect "\nOk."
expect "\n:)"
send -- "CREATE TABLE t01565 (c0 String, c1 Int32) ENGINE = Memory() ;\n"
expect "CREATE"
expect "\r\n"
send -- "\r"
expect "\nOk."
expect "\n:) "
send -- "INSERT INTO t01565(c0, c1) VALUES (\"1\",1) ;\n"
expect "INSERT"
expect "\r\n"
send -- "\r"
expect "\n:) "
send -- "INSERT INTO t01565(c0, c1) VALUES ('1', 1) ;\n"
expect "INSERT"
expect "\r\n"
send -- "\r"
expect "\nOk."
expect "\n:) "