github.com/ethersphere/bee/v2@v2.2.0/pkg/p2p/libp2p/main_test.go (about) 1 // Copyright 2022 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package libp2p_test 6 7 import ( 8 "testing" 9 10 "go.uber.org/goleak" 11 ) 12 13 func TestMain(m *testing.M) { 14 goleak.VerifyTestMain( 15 m, 16 goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"), 17 goleak.IgnoreTopFunction("sync.runtime_Semacquire"), 18 goleak.IgnoreTopFunction("net.ParseCIDR"), 19 goleak.IgnoreTopFunction("github.com/ipfs/go-log/writer.(*MirrorWriter).logRoutine"), 20 goleak.IgnoreTopFunction("github.com/libp2p/go-flow-metrics.(*sweeper).runActive"), 21 goleak.IgnoreTopFunction("github.com/huin/goupnp/httpu.(*MultiClient).Do.func2"), 22 goleak.IgnoreTopFunction("github.com/libp2p/go-flow-metrics.(*sweeper).run"), 23 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger.(*prefixTrie).insert"), 24 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger.newPathprefixTrie"), 25 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NetworkNumber.LeastCommonBitPosition"), 26 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NewNetwork"), 27 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.Network.LeastCommonBitPosition"), 28 goleak.IgnoreTopFunction("github.com/libp2p/go-libp2p/p2p/transport/quicreuse.(*reuse).gc"), 29 goleak.IgnoreTopFunction("github.com/libp2p/go-libp2p/p2p/host/resource-manager.(*resourceManager).background"), 30 goleak.IgnoreTopFunction("github.com/quic-go/quic-go.(*packetHandlerMap).runCloseQueue"), 31 goleak.IgnoreTopFunction("github.com/quic-go/quic-go.(*Transport).runSendQueue"), 32 goleak.IgnoreTopFunction("net/http.(*persistConn).roundTrip"), 33 goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), 34 goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop "), 35 goleak.IgnoreTopFunction("net.(*netFD).connect.func2"), 36 goleak.IgnoreTopFunction("net/http.(*Transport).getConn"), 37 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger.(*prefixTrie).insert"), 38 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger.newPathprefixTrie"), 39 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NetworkNumber.LeastCommonBitPosition"), 40 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NewNetwork"), 41 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.Network.LeastCommonBitPosition"), 42 goleak.IgnoreTopFunction("github.com/libp2p/go-flow-metrics.(*sweeper).runActive"), 43 ) 44 }