Skip to content

Commit 81dce1e

Browse files
authored
Merge pull request ClickHouse#79804 from ClickHouse/ncb/fix-flake-02935
fix flaky test 02935_http_content_type_with_http_headers_progress
2 parents 49b1662 + ccb4caf commit 81dce1e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/queries/0_stateless/02935_http_content_type_with_http_headers_progress.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
44
# shellcheck source=../shell_config.sh
55
. "$CURDIR"/../shell_config.sh
66

7-
for frmt in TSV TabSeparatedWithNamesAndTypes CSV CSVWithNames Null Native RowBinary JSONStrings JSON JSONEachRow Values Vertical
7+
THREADS=$(nproc)
8+
9+
for format in TSV TabSeparatedWithNamesAndTypes CSV CSVWithNames Null Native RowBinary JSONStrings JSON JSONEachRow Values Vertical
810
do
9-
echo $frmt
10-
url="${CLICKHOUSE_URL}/?http_headers_progress_interval_ms=1&send_progress_in_http_headers=true&query=select+sleepEachRow(0.01)from+numbers(10)+FORMAT+${frmt}"
11-
(seq 1 200| xargs -n1 -P0 -Ixxx curl -Ss -v -o /dev/null ${url} 2>&1|grep -Eo " Content-Type:.*$")|strings|sort -u
11+
echo $format
12+
url="${CLICKHOUSE_URL}/?http_headers_progress_interval_ms=1&send_progress_in_http_headers=true&query=select+sleepEachRow(0.01)from+numbers(10)+FORMAT+${format}"
13+
(seq 1 ${THREADS} | xargs --max-args=1 -P"${THREADS}" -Ixxx curl -Ss -v -o /dev/null ${url} 2>&1 | grep -P -o " Content-Type:.*$") | strings | sort -u
1214
done
1315

0 commit comments

Comments
 (0)