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:
Marek Marczykowski-Górecki 2017-11-09 11:41:38 +01:00
parent bdaf92f9dc
commit 99874a0a25
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -959,7 +959,7 @@ class SystemTestCase(QubesTestCase):
self.fail("Timeout while waiting for {} window to {}".format( self.fail("Timeout while waiting for {} window to {}".format(
title, "show" if show else "hide") 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): def enter_keys_in_window(self, title, keys):
""" """