Skip to content

Commit

Permalink
fix: revert change on StabilityPoolTest as it fails some strange reason
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanVerbner committed Jun 30, 2021
1 parent 70f4a3b commit 8ed1025
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/contracts/test/StabilityPoolTest.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 8ed1025

Please sign in to comment.