Merge pull request #3012 from lbryio/unclosed_warnings_fix

fix unclosed transport warnings on tests
This commit is contained in:
Lex Berezhny 2020-08-03 10:33:51 -04:00 committed by GitHub
commit a7555932a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()