github.com/ethersphere/bee/v2@v2.2.0/pkg/puller/intervalstore/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 intervalstore_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  		// leveldb implementation does not wait for all goroutines
    17  		// to finishing when DB gets closed.
    18  		goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain"),
    19  	)
    20  }