Skip to content

Commit

Permalink
Fix timeout keeper-client
Browse files Browse the repository at this point in the history
  • Loading branch information
pufit committed Sep 11, 2023
1 parent 9263107 commit 4f5d132
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/helpers/keeper_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def execute_query(self, query: str, timeout: float = 10.0) -> str:
self.proc.stdin.flush()

events = self.poller.poll(timeout)
if not events:
raise TimeoutError(f"Keeper client returned no output")

for fd_num, event in events:
if event & (select.EPOLLIN | select.EPOLLPRI):
Expand Down

0 comments on commit 4f5d132

Please sign in to comment.