mirror of
https://github.com/luxfi/evmgpu.git
synced 2026-10-30 16:57:11 +00:00
26 lines
932 B
Go
26 lines
932 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package core
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"go.uber.org/goleak"
|
|
)
|
|
|
|
// TestMain uses goleak to verify tests in this package do not leak unexpected
|
|
// goroutines.
|
|
func TestMain(m *testing.M) {
|
|
opts := []goleak.Option{
|
|
// No good way to shut down these goroutines:
|
|
goleak.IgnoreTopFunction("github.com/luxfi/evmgpu/core/state/snapshot.(*diskLayer).generate"),
|
|
goleak.IgnoreTopFunction("github.com/luxfi/geth/core.(*txSenderCacher).cache"),
|
|
goleak.IgnoreTopFunction("github.com/luxfi/geth/metrics.(*meterArbiter).tick"),
|
|
goleak.IgnoreTopFunction("github.com/luxfi/evmgpu/metrics.(*meterArbiter).tick"),
|
|
goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain"),
|
|
goleak.IgnoreTopFunction("github.com/luxfi/geth/triedb/pathdb.(*generator).generate"),
|
|
}
|
|
goleak.VerifyTestMain(m, opts...)
|
|
}
|