From 568fa5a244f1d2dea75fd0a873514335eb24ff1b Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Wed, 6 May 2020 10:25:14 -0400 Subject: [PATCH] close stream in test --- gossipsub_test.go | 2 ++ 1 file changed, 2 insertions(+) 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)