Skip to content

Commit

Permalink
Set time_left as request timeout to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Sep 24, 2024
1 parent f034648 commit 899b09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ch_tools/chadmin/cli/wait_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def wait_replication_sync_command(
ctx,
f"SYSTEM SYNC REPLICA {full_name}",
format_=None,
timeout=timeout,
timeout=time_left,
settings={"receive_timeout": timeout},
)
except requests.exceptions.ReadTimeout:
Expand Down
2 changes: 1 addition & 1 deletion tests/features/chadmin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Feature: chadmin commands.
"""
Then it fails with response contains
"""
Read timeout while running query.
Timeout while running query.
"""
When we execute query on clickhouse01
"""
Expand Down

0 comments on commit 899b09a

Please sign in to comment.