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.
这个提交包含在:
Marek Marczykowski-Górecki 2020-07-05 16:07:58 +02:00
父节点 1b09528740
当前提交 e38265501c
找不到此签名对应的密钥
GPG 密钥 ID: 063938BA42CFA724

查看文件

@ -251,6 +251,7 @@ def wait_on_fail(func):
lambda: asyncio.StreamReaderProtocol(reader),
sys.stdin))
self.loop.run_until_complete(reader.readline())
transport.close()
raise
return wrapper