mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 04:28:40 +03:00
test-driver: respect timeout in wait_until_fails
- `wait_until_fails` was not passing through its `timeout` argument to the internal `retry` function, hence was always using 900 seconds (the default timeout for `retry`) rather than the user-specified value.
This commit is contained in:
parent
202850e1a1
commit
491efa0b3e
@ -641,7 +641,7 @@ class Machine:
|
|||||||
return status != 0
|
return status != 0
|
||||||
|
|
||||||
with self.nested(f"waiting for failure: {command}"):
|
with self.nested(f"waiting for failure: {command}"):
|
||||||
retry(check_failure)
|
retry(check_failure, timeout)
|
||||||
return output
|
return output
|
||||||
|
|
||||||
def wait_for_shutdown(self) -> None:
|
def wait_for_shutdown(self) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user