Skip to content

Commit

Permalink
tests: cleanup properly in wait_on_fail decorator
Browse files Browse the repository at this point in the history
Close transport used to wait for user input, otherwise all further tests
would fail on cleanup (FD leak detected). This in practice is only
useful when using wait_on_fail decorator without --failfast option.

(cherry picked from commit e382655)
  • Loading branch information
marmarek committed Oct 22, 2020
1 parent a53a575 commit 90043b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def wrapper(self, *args, **kwargs):
lambda: asyncio.StreamReaderProtocol(reader),
sys.stdin))
self.loop.run_until_complete(reader.readline())
transport.close()
raise

return wrapper
Expand Down

0 comments on commit 90043b0

Please sign in to comment.