From 75916dca5d45e14982d75a0e1be39dc178e94688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 5 Apr 2019 03:16:39 +0200 Subject: [PATCH] tests: fix waiting for audio recording to end --- qubes/tests/integ/vm_qrexec_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/tests/integ/vm_qrexec_gui.py b/qubes/tests/integ/vm_qrexec_gui.py index 7074e5f7..1d9f8ca7 100644 --- a/qubes/tests/integ/vm_qrexec_gui.py +++ b/qubes/tests/integ/vm_qrexec_gui.py @@ -872,7 +872,7 @@ class TC_00_AppVMMixin(object): self.loop.run_until_complete(asyncio.sleep(1)) self.loop.run_until_complete( self.testvm1.run_for_stdio('pkill parecord')) - record.wait() + self.loop.run_until_complete(record.wait()) recorded_audio, _ = self.loop.run_until_complete( self.testvm1.run_for_stdio('cat audio_rec.raw')) # should be empty or silence, so check just a little fragment @@ -916,7 +916,7 @@ class TC_00_AppVMMixin(object): self.loop.run_until_complete(asyncio.sleep(1)) self.loop.run_until_complete( self.testvm1.run_for_stdio('pkill parecord')) - record.wait() + self.loop.run_until_complete(record.wait()) recorded_audio, _ = self.loop.run_until_complete( self.testvm1.run_for_stdio('cat audio_rec.raw')) # allow few bytes to be missing