mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- Update github.com/luxfi/evm to v0.7.10 (simpler versioning without -lux suffix) - Keep local replace directives for evm/genesis (circular dependency) - Disable lp118 warp type mismatch tests temporarily - Add migration tooling and RPC export capabilities - Update chain manager for better warp handling
26 lines
926 B
Go
26 lines
926 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/evm/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/evm/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...)
|
|
}
|