Add tests for SwarmConn

This commit is contained in:
mhchia
2019-09-17 23:38:11 +08:00
parent b8b5ac5e06
commit d61327f5f9
5 changed files with 79 additions and 9 deletions

View File

@ -66,3 +66,7 @@ class NetStream(INetStream):
async def reset(self) -> None:
await self.muxed_stream.reset()
# TODO: `remove`: Called by close and write when the stream is in specific states.
# It notify `ClosedStream` after `SwarmConn.remove_stream` is called.
# Reference: https://github.com/libp2p/go-libp2p-swarm/blob/99831444e78c8f23c9335c17d8f7c700ba25ca14/swarm_stream.go # noqa: E501