fix unclosed transport warnings on tests

This commit is contained in:
Victor Shyba 2020-08-03 03:30:29 -03:00
parent 85db7d3ce7
commit 9411b26fd3

View file

@ -196,6 +196,7 @@ class Lbrycrd:
self.transport.terminate()
await self.protocol.stopped.wait()
assert self.transport.get_returncode() == 0, "lbrycrd daemon exit with error"
self.transport.close()
finally:
if cleanup:
await self.cleanup()