Skip to content

Commit 83494c3

Browse files
Algunenanomkmkme
authored andcommitted
Make 02116_clickhouse_stderr more obvious and compatible with different configs
1 parent f7fed0f commit 83494c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/queries/0_stateless/02116_clickhouse_stderr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2222
cd "$test_dir" || exit 1
2323

2424
stderr=$(mktemp -t clickhouse.XXXXXX)
25-
$CLICKHOUSE_SERVER_BINARY -- --logger.stderr="$stderr" 2>/dev/null
25+
# It will fail to start because the port is already in use
26+
$CLICKHOUSE_SERVER_BINARY -- --listen_host "${CLICKHOUSE_HOST}" --tcp_port "$CLICKHOUSE_PORT_TCP" --logger.stderr="$stderr" 2>/dev/null
2627
# -s -- check that stderr was created and is not empty
2728
test -s "$stderr" || exit 2
2829
rm "$stderr"

0 commit comments

Comments
 (0)