diff --git a/packages/contracts/test/StabilityPoolTest.js b/packages/contracts/test/StabilityPoolTest.js index 711cf7857..12e0f57d2 100644 --- a/packages/contracts/test/StabilityPoolTest.js +++ b/packages/contracts/test/StabilityPoolTest.js @@ -1,6 +1,5 @@ const deploymentHelper = require("../utils/deploymentHelpers.js") const testHelpers = require("../utils/testHelpers.js") -const timeMachine = require('ganache-time-traveler'); const th = testHelpers.TestHelper const dec = th.dec const toBN = th.toBN @@ -54,6 +53,9 @@ contract('StabilityPool', async accounts => { before(async () => { gasPriceInWei = await web3.eth.getGasPrice() + }) + + beforeEach(async () => { contracts = await deploymentHelper.deployLiquityCore() contracts.troveManager = await TroveManagerTester.new() contracts.lusdToken = await LUSDToken.new( @@ -84,17 +86,6 @@ contract('StabilityPool', async accounts => { await th.registerFrontEnds(frontEnds, stabilityPool) }) - let revertToSnapshot; - - beforeEach(async() => { - let snapshot = await timeMachine.takeSnapshot(); - revertToSnapshot = () => timeMachine.revertToSnapshot(snapshot['result']) - }); - - afterEach(async() => { - await revertToSnapshot(); - }); - // --- provideToSP() --- // increases recorded LUSD at Stability Pool it("provideToSP(): increases the Stability Pool LUSD balance", async () => {