Fixed bug in tests that leads to occassional timeouts on slow machines

fixes QubesOS/qubes-issues#5694
This commit is contained in:
Marta Marczykowska-Górecka 2020-02-27 16:58:57 +01:00
parent 22bbba5cdf
commit 92465f71e7
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -13,4 +13,5 @@ def init_qtapp():
qtapp = QtWidgets.QApplication(sys.argv)
loop = quamash.QEventLoop(qtapp)
asyncio.set_event_loop(loop)
qtapp.processEvents()
return qtapp, loop