tests: increase session startup timeout for whonix-ws based VMs
First boot of whonix-ws based VM take extended period of time, because a lot of files needs to be copied to private volume. This takes even more time, when verbose logging through console is enabled. Extend the timeout for that.
This commit is contained in:
parent
84d3547f09
commit
84c321b923
@ -1204,10 +1204,15 @@ class SystemTestCase(QubesTestCase):
|
||||
|
||||
@asyncio.coroutine
|
||||
def wait_for_session(self, vm):
|
||||
timeout = 30
|
||||
if getattr(vm, 'template', None) and 'whonix-ws' in vm.template.name:
|
||||
# first boot of whonix-ws takes more time because of /home
|
||||
# initialization, including Tor Browser copying
|
||||
timeout = 120
|
||||
yield from asyncio.wait_for(
|
||||
vm.run_service_for_stdio(
|
||||
'qubes.WaitForSession', input=vm.default_user.encode()),
|
||||
timeout=30)
|
||||
timeout=timeout)
|
||||
|
||||
|
||||
_templates = None
|
||||
|
Loading…
Reference in New Issue
Block a user