Skip to content

Commit

Permalink
Fix tests for 24.11 (#269)
Browse files Browse the repository at this point in the history
* init

* code was specified
  • Loading branch information
k-morozov authored Dec 13, 2024
1 parent b1852dd commit 2c273d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/modules/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from hamcrest import assert_that
from requests import HTTPError
from requests.exceptions import ChunkedEncodingError

from ch_tools.chadmin.internal.clickhouse_disks import (
CLICKHOUSE_PATH,
Expand Down Expand Up @@ -58,6 +59,10 @@ def get_response(context: ContextT, node: str, query: str) -> Tuple[int, str]:
return e.response.status_code, e.response.text
except ClickhouseError as e:
return e.response.status_code, e.response.text
except ChunkedEncodingError as ex:
# Related PR: https://github.com/ClickHouse/ClickHouse/pull/68800
logging.warning(f"exception from server {ex}")
return 408, "Workaround for in-progress op"


def get_version(context: ContextT, node: str) -> str:
Expand Down

0 comments on commit 2c273d5

Please sign in to comment.