tests: make waiting for window asyncio aware
For now just replace sleep with asyncio.sleep. Later it may make sense to change subprocess.call too.
This commit is contained in:
parent
bdaf92f9dc
commit
99874a0a25
@ -959,7 +959,7 @@ class SystemTestCase(QubesTestCase):
|
||||
self.fail("Timeout while waiting for {} window to {}".format(
|
||||
title, "show" if show else "hide")
|
||||
)
|
||||
time.sleep(0.1)
|
||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||
|
||||
def enter_keys_in_window(self, title, keys):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user