Browse Source

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.
Marek Marczykowski-Górecki 6 years ago
parent
commit
99874a0a25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubes/tests/__init__.py

+ 1 - 1
qubes/tests/__init__.py

@@ -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):
         """