diff --git a/gossipsub_test.go b/gossipsub_test.go index 946ace0..6deff75 100644 --- a/gossipsub_test.go +++ b/gossipsub_test.go @@ -1787,6 +1787,8 @@ type iwantEverything struct { } func (iwe *iwantEverything) handleStream(s network.Stream) { + defer s.Close() + os, err := iwe.h.NewStream(context.Background(), s.Conn().RemotePeer(), GossipSubID_v10) if err != nil { panic(err)