tests: cleanup properly in wait_on_fail decorator
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.
This commit is contained in:
parent
1b09528740
commit
e38265501c
@ -251,6 +251,7 @@ def wait_on_fail(func):
|
|||||||
lambda: asyncio.StreamReaderProtocol(reader),
|
lambda: asyncio.StreamReaderProtocol(reader),
|
||||||
sys.stdin))
|
sys.stdin))
|
||||||
self.loop.run_until_complete(reader.readline())
|
self.loop.run_until_complete(reader.readline())
|
||||||
|
transport.close()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
Loading…
Reference in New Issue
Block a user