Skip to content

Commit 82fa2ca

Browse files
authored
Merge pull request ClickHouse#78817 from azat/tests/better-exception-detection
tests: better Exception in stdout detection
2 parents 2dd48ed + 1c423f2 commit 82fa2ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/clickhouse-test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,9 @@ class TestCase:
16321632
description,
16331633
)
16341634

1635-
if "Exception" in stdout and "X-ClickHouse-Exception-Code" not in stdout:
1635+
# "X-ClickHouse-Exception-Code" included in "Access-Control-Expose-Headers"
1636+
# "Exception" may be included into i.e. metric name
1637+
if re.search(r'(^|\W)(Net|Errno|)Exception(\W|$)', stdout) and "X-ClickHouse-Exception-Code" not in stdout:
16361638
description += "\n{}\n".format("\n".join(stdout.splitlines()[:100]))
16371639
if debug_log:
16381640
description += "\n"

0 commit comments

Comments
 (0)