mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
Fix overriding network config in tests (#8756)
* Fix overriding network config in tests * copy config in OverrideBeaconNetworkConfig Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
parent
228033f7a3
commit
902e3f4f53
@ -7,10 +7,10 @@ import "testing"
|
||||
func SetupTestConfigCleanup(t testing.TB) {
|
||||
prevDefaultBeaconConfig := mainnetBeaconConfig.Copy()
|
||||
prevBeaconConfig := beaconConfig.Copy()
|
||||
prevNetworkCfg := mainnetNetworkConfig.Copy()
|
||||
prevNetworkCfg := networkConfig.Copy()
|
||||
t.Cleanup(func() {
|
||||
mainnetBeaconConfig = prevDefaultBeaconConfig
|
||||
beaconConfig = prevBeaconConfig
|
||||
mainnetNetworkConfig = prevNetworkCfg
|
||||
networkConfig = prevNetworkCfg
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user