Skip to content

Commit

Permalink
Merge pull request #50542 from azat/tests/fix-expect
Browse files Browse the repository at this point in the history
Make 01565_query_loop_after_client_error slightly more robust
  • Loading branch information
alexey-milovidov committed Jun 5, 2023
2 parents 5048f24 + 60c2245 commit 6241ea3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:) "
Expand Down

0 comments on commit 6241ea3

Please sign in to comment.