Skip to content

Commit

Permalink
Review comments in agent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kmazurek committed Mar 30, 2021
1 parent 5a4a7b8 commit b365b29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions goth/runner/probe/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def _init_log_monitor(self):
log_config.base_dir = probe.container.log_config.base_dir

self.log_monitor = LogEventMonitor(self.name, log_config)
self._last_checked_line = -1

async def wait_for_log(self, pattern: str, timeout: float = 1000) -> LogEvent:
async def wait_for_log(self, pattern: str, timeout: Optional[float] = None) -> LogEvent:
"""Search agent logs for a log line with the message matching `pattern`."""
entry = await self.log_monitor.wait_for_entry(pattern, timeout)
return entry
Expand Down

0 comments on commit b365b29

Please sign in to comment.