Skip to content

Commit

Permalink
tests: Disable timeout Lint Findings
Browse files Browse the repository at this point in the history
Having the timeout in polling functions makes them easier to use.
  • Loading branch information
holesch committed Aug 15, 2024
1 parent 21e808e commit decd9e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def ssh_task_root(self, cmd, *args, **kwargs):
async def ssh(self, cmd, *args, **kwargs):
return await sh(f"./scripts/vmctl ssh {self._name} " + cmd, *args, **kwargs)

async def ssh_poll(self, cmd, timeout=None):
async def ssh_poll(self, cmd, timeout=None): # noqa: ASYNC109
return await sh_poll(f"./scripts/vmctl ssh {self._name} " + cmd, timeout)


Expand Down Expand Up @@ -115,7 +115,7 @@ async def sh_task(cmd, prefix=None, terminate=True, wait_ready=False):
await logging_task


async def sh_poll(cmd, timeout=None):
async def sh_poll(cmd, timeout=None): # noqa: ASYNC109
if pathlib.Path("/dev/kvm").exists():
if timeout is None:
timeout = 7
Expand Down Expand Up @@ -146,7 +146,7 @@ async def _log_output(stream, cmd, prefix):
sys.stderr.buffer.flush()


async def wait_for_ports(*ports, timeout=7):
async def wait_for_ports(*ports, timeout=7): # noqa: ASYNC109
async with util.timeout(timeout):
while True:
try:
Expand Down

0 comments on commit decd9e8

Please sign in to comment.