diff --git a/tests/e2e/c/dynamic_fees.go b/tests/e2e/c/dynamic_fees.go index c44b3f5a1b23..c26c7e00bc6f 100644 --- a/tests/e2e/c/dynamic_fees.go +++ b/tests/e2e/c/dynamic_fees.go @@ -37,7 +37,10 @@ var _ = e2e.DescribeCChain("[Dynamic Fees]", func() { ginkgo.It("should ensure that the gas price is affected by load", func() { ginkgo.By("creating a new private network to ensure isolation from other tests") - privateNetwork := e2e.Env.NewPrivateNetwork("avalanchego-e2e-dynamic-fees") + privateNetwork := &tmpnet.Network{ + Owner: "avalanchego-e2e-dynamic-fees", + } + e2e.Env.NewPrivateNetwork(privateNetwork) ginkgo.By("allocating a pre-funded key") key := privateNetwork.PreFundedKeys[0] diff --git a/tests/fixture/e2e/env.go b/tests/fixture/e2e/env.go index e9c8958bc1d4..e11f74954a4a 100644 --- a/tests/fixture/e2e/env.go +++ b/tests/fixture/e2e/env.go @@ -155,7 +155,7 @@ func (te *TestEnvironment) NewKeychain(count int) *secp256k1fx.Keychain { } // Create a new private network that is not shared with other tests. -func (te *TestEnvironment) NewPrivateNetwork(networkOwner string) *tmpnet.Network { +func (te *TestEnvironment) NewPrivateNetwork(network *tmpnet.Network) { // Use the same configuration as the shared network sharedNetwork, err := tmpnet.ReadNetwork(te.NetworkDir) te.require.NoError(err) @@ -163,14 +163,9 @@ func (te *TestEnvironment) NewPrivateNetwork(networkOwner string) *tmpnet.Networ pluginDir, err := sharedNetwork.DefaultFlags.GetStringVal(config.PluginDirKey) te.require.NoError(err) - network := &tmpnet.Network{ - Owner: networkOwner, - } StartNetwork( network, sharedNetwork.DefaultRuntimeConfig.AvalancheGoPath, pluginDir, ) - - return network }