Skip to content

Commit 1674737

Browse files
committed
fix test race
1 parent 576a251 commit 1674737

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

p2p/protocol/identify/id_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,10 @@ func TestIncomingIDStreamsTimeout(t *testing.T) {
844844
func TestOutOfOrderConnectedNotifs(t *testing.T) {
845845
h1, err := libp2p.New(libp2p.NoListenAddrs)
846846
require.NoError(t, err)
847+
defer h1.Close()
847848
h2, err := libp2p.New(libp2p.ListenAddrs(ma.StringCast("/ip4/127.0.0.1/udp/0/quic-v1")))
848849
require.NoError(t, err)
850+
defer h2.Close()
849851

850852
doneCh := make(chan struct{})
851853
errCh := make(chan error)

0 commit comments

Comments
 (0)