github.com/ethersphere/bee/v2@v2.2.0/pkg/topology/kademlia/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 kademlia_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/syndtr/goleveldb/leveldb.(*DB).compactionError"), 17 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction"), 18 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction"), 19 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*session).refLoop"), 20 goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain"), 21 ) 22 }