diff --git a/packages/environment/test/develop.js b/packages/environment/test/develop.js index 37234302d14..80cab524f56 100644 --- a/packages/environment/test/develop.js +++ b/packages/environment/test/develop.js @@ -29,14 +29,10 @@ describe("Environment develop", function () { gas: expectedNetwork.gas } }; - sinon.stub(Environment, "detect"); - }); - - afterEach("Restore Environment detect", async function () { - Environment.detect.restore(); }); - it("Environment.develop overwrites the network_id of the network", async function() { + it("Environment.develop overwrites the network_id of the network", async function () { + sinon.stub(Environment, "detect"); await Environment.develop(config, testOptions); const mutatedNetwork = config.networks[config.network]; @@ -56,5 +52,4 @@ describe("Environment develop", function () { "The gas of the network should be unchanged." ); }); - }).timeout(10000);