Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
environment: ignore sinon.restore
Browse files Browse the repository at this point in the history
This test was failing CI and there doesn't seem to be a need for the
start-up/tear-down infrastructure for a suite that has only one test.
  • Loading branch information
cds-amal committed Mar 9, 2022
1 parent a971288 commit 72fb420
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/environment/test/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -56,5 +52,4 @@ describe("Environment develop", function () {
"The gas of the network should be unchanged."
);
});

}).timeout(10000);

0 comments on commit 72fb420

Please sign in to comment.