diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference index eeeba3b9795..0ca95142bb7 100644 --- a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference +++ b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference @@ -1 +1 @@ -X-ClickHouse-Exception-Code: 62 +True diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh index e9a60d7febe..81b80b98b0e 100755 --- a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh +++ b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh @@ -3,4 +3,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CURL_COMMAND} -I -sSg "${CLICKHOUSE_URL}?query=BADREQUEST" 2>/dev/null | grep -o 'X-ClickHouse-Exception-Code: 62' +if [[ `${CLICKHOUSE_CURL_COMMAND} -I "${CLICKHOUSE_URL}&query=BADREQUEST" 2>&1 | grep -c 'X-ClickHouse-Exception-Code: 62'` -eq 1 ]]; then + echo "True" +fi +exit 0