Skip to content

Commit 04f0e36

Browse files
jnsnowphilmd
authored andcommitted
python/machine.py: change default wait timeout to 3 seconds
Machine.wait() does not appear to be used except in the acceptance tests, and an infinite timeout by default in a test suite is not the most helpful. Change it to 3 seconds, like the default shutdown timeout. Signed-off-by: John Snow <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Cleber Rosa <[email protected]> Tested-by: Cleber Rosa <[email protected]> Message-Id: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent de6e08b commit 04f0e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/qemu/machine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,12 @@ def kill(self):
486486
"""
487487
self.shutdown(hard=True)
488488

489-
def wait(self, timeout: Optional[int] = None) -> None:
489+
def wait(self, timeout: Optional[int] = 3) -> None:
490490
"""
491491
Wait for the VM to power off and perform post-shutdown cleanup.
492492
493493
:param timeout: Optional timeout in seconds.
494-
Default None, an infinite wait.
494+
Default 3 seconds, A value of None is an infinite wait.
495495
"""
496496
self.shutdown(has_quit=True, timeout=timeout)
497497

0 commit comments

Comments
 (0)