mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Fix 01565_reconnect_after_client_error test (wrong expect code for multi-line mode)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
f7df0fa0bf
commit
d905969006
@ -24,18 +24,27 @@ spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT_BINARY \
|
|||||||
expect "\n:) "
|
expect "\n:) "
|
||||||
|
|
||||||
send -- "DROP TABLE IF EXISTS t01565;\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"
|
||||||
|
send -- "\r"
|
||||||
expect "\nOk."
|
expect "\nOk."
|
||||||
expect "\n:)"
|
expect "\n:)"
|
||||||
|
|
||||||
send -- "CREATE TABLE t01565 (c0 String, c1 Int32) ENGINE = Memory() ;\n"
|
send -- "CREATE TABLE t01565 (c0 String, c1 Int32) ENGINE = Memory() ;\n"
|
||||||
|
expect "CREATE"
|
||||||
|
send -- "\r"
|
||||||
expect "\nOk."
|
expect "\nOk."
|
||||||
expect "\n:) "
|
expect "\n:) "
|
||||||
|
|
||||||
send -- "INSERT INTO t01565(c0, c1) VALUES (\"1\",1) ;\n"
|
send -- "INSERT INTO t01565(c0, c1) VALUES (\"1\",1) ;\n"
|
||||||
|
expect "INSERT"
|
||||||
|
send -- "\r"
|
||||||
expect "\nConnected"
|
expect "\nConnected"
|
||||||
expect "\n:) "
|
expect "\n:) "
|
||||||
|
|
||||||
send -- "INSERT INTO t01565(c0, c1) VALUES ('1', 1) ;\n"
|
send -- "INSERT INTO t01565(c0, c1) VALUES ('1', 1) ;\n"
|
||||||
|
expect "INSERT"
|
||||||
|
send -- "\r"
|
||||||
expect "\nOk."
|
expect "\nOk."
|
||||||
expect "\n:) "
|
expect "\n:) "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user