Skip to content

Commit 8ed1025

Browse files
committed
fix: revert change on StabilityPoolTest as it fails some strange reason
1 parent 70f4a3b commit 8ed1025

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

packages/contracts/test/StabilityPoolTest.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const deploymentHelper = require("../utils/deploymentHelpers.js")
22
const testHelpers = require("../utils/testHelpers.js")
3-
const timeMachine = require('ganache-time-traveler');
43
const th = testHelpers.TestHelper
54
const dec = th.dec
65
const toBN = th.toBN
@@ -54,6 +53,9 @@ contract('StabilityPool', async accounts => {
5453

5554
before(async () => {
5655
gasPriceInWei = await web3.eth.getGasPrice()
56+
})
57+
58+
beforeEach(async () => {
5759
contracts = await deploymentHelper.deployLiquityCore()
5860
contracts.troveManager = await TroveManagerTester.new()
5961
contracts.lusdToken = await LUSDToken.new(
@@ -84,17 +86,6 @@ contract('StabilityPool', async accounts => {
8486
await th.registerFrontEnds(frontEnds, stabilityPool)
8587
})
8688

87-
let revertToSnapshot;
88-
89-
beforeEach(async() => {
90-
let snapshot = await timeMachine.takeSnapshot();
91-
revertToSnapshot = () => timeMachine.revertToSnapshot(snapshot['result'])
92-
});
93-
94-
afterEach(async() => {
95-
await revertToSnapshot();
96-
});
97-
9889
// --- provideToSP() ---
9990
// increases recorded LUSD at Stability Pool
10091
it("provideToSP(): increases the Stability Pool LUSD balance", async () => {

0 commit comments

Comments
 (0)