Skip to content

Commit

Permalink
contracts: Fix CollSurplusPool tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Nov 30, 2020
1 parent 4e75719 commit 8349222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contracts/test/CollSurplusPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ contract('CollSUrplusPool', async accounts => {
})

it("CollSurplusPool: claimColl(): Reverts if caller is not Borrower Operations", async () => {
await th.assertRevert(collSurplusPool.claimColl(A, { from: A }), 'CollSurplus: Caller is not Borrower Operations')
await th.assertRevert(collSurplusPool.claimColl(A, { from: A }), 'CollSurplusPool: Caller is not Borrower Operations')
})

it("CollSurplusPool: claimColl(): Reverts if nothing to claim", async () => {
await th.assertRevert(borrowerOperations.claimRedeemedCollateral(A), 'CollSurplus: No collateral available to claim')
await th.assertRevert(borrowerOperations.claimRedeemedCollateral(A), 'CollSurplusPool: No collateral available to claim')
})

it("CollSurplusPool: claimColl(): Reverts if owner cannot receive ETH surplus", async () => {
Expand All @@ -72,7 +72,7 @@ contract('CollSUrplusPool', async accounts => {
const ETH_2 = await collSurplusPool.getETH()
assert.equal(ETH_2, dec(5, 17))

await th.assertRevert(borrowerOperations.claimRedeemedCollateral(B), 'CollSurplus: sending ETH failed')
await th.assertRevert(borrowerOperations.claimRedeemedCollateral(nonPayable.address), 'CollSurplusPool: sending ETH failed')
})

it('CollSurplusPool: reverts trying to send ETH to it', async () => {
Expand Down

0 comments on commit 8349222

Please sign in to comment.