Skip to content

Commit

Permalink
tests: fix resource leaks - process not waited for
Browse files Browse the repository at this point in the history
(cherry picked from commit fc154fb)
  • Loading branch information
marmarek committed Apr 4, 2019
1 parent dd577d2 commit 1cfa09a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubes/tests/integ/mime.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ def open_file_and_check_viewer(self, filename, expected_app_titles,
window_class = self.get_window_class(winid, dispvm)
# close the window - we've got the window class, it is no longer needed
subprocess.check_call(['wmctrl', '-i', '-c', winid])
p.wait()
try:
self.loop.run_until_complete(asyncio.wait_for(p.wait(), 30))
except asyncio.TimeoutError:
self.fail('qvm-open-in-vm did not exited')
self.wait_for_window(window_title, show=False)

def check_matches(obj, patterns):
Expand Down

0 comments on commit 1cfa09a

Please sign in to comment.