github.com/ethersphere/bee/v2@v2.2.0/pkg/node/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 node_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("github.com/rjeczalik/notify.(*nonrecursiveTree).dispatch"), 17 goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).dispatch"), 18 goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*nonrecursiveTree).internal"), 19 goleak.IgnoreTopFunction("github.com/rjeczalik/notify._Cfunc_CFRunLoopRun"), 20 goleak.IgnoreTopFunction("github.com/ipfs/go-log/writer.(*MirrorWriter).logRoutine"), 21 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NetworkNumber.LeastCommonBitPosition"), 22 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.NewNetwork"), 23 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger/net.Network.LeastCommonBitPosition"), 24 goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"), 25 goleak.IgnoreTopFunction("github.com/libp2p/go-cidranger.(*prefixTrie).insert"), 26 ) 27 }