Skip to content

Commit

Permalink
fix transport integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Mar 6, 2024
1 parent 3832d79 commit 6fb4c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/test/transport/transport_test.go
Expand Up @@ -327,6 +327,10 @@ func TestManyStreams(t *testing.T) {
h1.SetStreamHandler("echo", func(s network.Stream) {
io.Copy(s, s)
s.CloseWrite()
// Users do need to call Close or Reset after CloseRead and CloseWrite
// For webRTC streams it is necessary that Close be called for datachannel
// cleanup
s.Close()
})

streams := make([]network.Stream, streamCount)
Expand Down

0 comments on commit 6fb4c40

Please sign in to comment.