From 902e3f4f53021fbf18b6c07035438222bb205875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kapka?= Date: Wed, 14 Apr 2021 09:39:20 +0200 Subject: [PATCH] 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 --- shared/params/testutils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/params/testutils.go b/shared/params/testutils.go index b288c1627..cc135aecf 100644 --- a/shared/params/testutils.go +++ b/shared/params/testutils.go @@ -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 }) }