From b538df661a007c3a795cbfa821e38fd25a6c3d3e Mon Sep 17 00:00:00 2001 From: proller Date: Wed, 6 Sep 2017 22:07:22 +0300 Subject: [PATCH] Again fix test 00501_http_head --- .../0_stateless/00501_http_head.reference | 24 +++++++++---------- .../queries/0_stateless/00501_http_head.sh | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00501_http_head.reference b/dbms/tests/queries/0_stateless/00501_http_head.reference index 8bbf4ff0b36..9727c63b2d8 100644 --- a/dbms/tests/queries/0_stateless/00501_http_head.reference +++ b/dbms/tests/queries/0_stateless/00501_http_head.reference @@ -1,12 +1,12 @@ -< HTTP/1.1 200 OK -< Connection: Keep-Alive -< Content-Type: text/tab-separated-values; charset=UTF-8 -< Transfer-Encoding: chunked -< Keep-Alive: timeout=3 -< -< HTTP/1.1 200 OK -< Connection: Keep-Alive -< Content-Type: text/tab-separated-values; charset=UTF-8 -< Transfer-Encoding: chunked -< Keep-Alive: timeout=3 -< +HTTP/1.1 200 OK +Connection: Keep-Alive +Content-Type: text/tab-separated-values; charset=UTF-8 +Transfer-Encoding: chunked +Keep-Alive: timeout=3 + +HTTP/1.1 200 OK +Connection: Keep-Alive +Content-Type: text/tab-separated-values; charset=UTF-8 +Transfer-Encoding: chunked +Keep-Alive: timeout=3 + diff --git a/dbms/tests/queries/0_stateless/00501_http_head.sh b/dbms/tests/queries/0_stateless/00501_http_head.sh index 79699041736..332b06dc944 100755 --- a/dbms/tests/queries/0_stateless/00501_http_head.sh +++ b/dbms/tests/queries/0_stateless/00501_http_head.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -( curl -v --max-time 0.3 -X "HEAD" 'http://localhost:18123/?query=SELECT%201'; - curl -v --max-time 0.3 -X "HEAD" 'http://localhost:18123/?query=select+*+from+system.numbers+limit+1000000' ) 2>&1 | grep -e "^<" | grep -v "Date:" +( curl -s --head "${CLICKHOUSE_URL:=http://localhost:8123/}?query=SELECT%201"; + curl -s --head "${CLICKHOUSE_URL:=http://localhost:8123/}?query=select+*+from+system.numbers+limit+1000000" ) | grep -v "Date:"