Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
fix tests to not run out of gas (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanChou committed Sep 13, 2018
1 parent cd3a60f commit b5e4473
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/tests/margin/external/bucketlender/TestBucketLender.js
Expand Up @@ -1351,6 +1351,30 @@ contract('BucketLender', accounts => {
expect(result1.available1).to.be.bignumber.eq(result2.available1);
});
});
});


contract('BucketLender', accounts => {

// ============ Before/After ============

beforeEach('set up contracts', async () => {
[
margin,
heldToken,
owedToken
] = await Promise.all([
Margin.deployed(),
HeldToken.new(),
OwedToken.new(),
]);

await setUpPosition(accounts);
});

afterEach('make checks', async () => {
await bucketLender.checkInvariants();
});

// ============ Integration Tests ============

Expand Down

0 comments on commit b5e4473

Please sign in to comment.