tests fixed

This commit is contained in:
Mikhail Korotov 2020-01-24 17:08:56 +03:00
parent 800f8adfee
commit b9b1dd5cdd
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
X-ClickHouse-Exception-Code: 62 True

View File

@ -3,4 +3,7 @@
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh . $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