github.com/ethersphere/bee/v2@v2.2.0/pkg/api/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 api_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.(*nonrecursiveTree).internal"), 18 goleak.IgnoreTopFunction("github.com/rjeczalik/notify.(*recursiveTree).dispatch"), 19 goleak.IgnoreTopFunction("github.com/rjeczalik/notify._Cfunc_CFRunLoopRun"), 20 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).compactionError"), 21 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction"), 22 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction"), 23 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*session).refLoop"), 24 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain"), 25 ) 26 }