Skip to content

Commit e5420c3

Browse files
Merge pull request #69842 from ClickHouse/add-test-49940
Add a test for #49940
2 parents 14cb02a + 2850da3 commit e5420c3

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/expect -f
2+
3+
set basedir [file dirname $argv0]
4+
set basename [file tail $argv0]
5+
if {[info exists env(CLICKHOUSE_TMP)]} {
6+
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
7+
} else {
8+
set CLICKHOUSE_TMP "."
9+
}
10+
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
11+
set history_file $CLICKHOUSE_TMP/$basename.history
12+
13+
log_user 0
14+
set timeout 60
15+
match_max 100000
16+
17+
expect_after {
18+
# Do not ignore eof from expect
19+
-i $any_spawn_id eof { exp_continue }
20+
# A default timeout action is to do nothing, change it to fail
21+
-i $any_spawn_id timeout { exit 1 }
22+
}
23+
24+
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT_BINARY \$CLICKHOUSE_CLIENT_OPT --disable_suggestion --history_file=$history_file"
25+
26+
expect ":) "
27+
send -- "SELECT generateUUIDv4() FORMAT Arrow;\r"
28+
expect ":) "
29+
send -- "SELECT 1;\r"
30+
expect "1 row in set."
31+
expect ":) "
32+
send "exit\r"
33+
expect eof

tests/queries/0_stateless/03237_sticky_error_client.reference

Whitespace-only changes.

0 commit comments

Comments
 (0)