Skip to content

Commit 4cd3742

Browse files
committed
✅ hardhat: handle out-of-gas revert
1 parent 894c5bc commit 4cd3742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/hardhat/19_rewards_controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ describe("RewardsController", function () {
6565
});
6666

6767
it("AND calling allClaimable with invalid reward asset THEN the claimable amount is 0", async () => {
68-
const claimableBalance = await rewardsController.allClaimable(alice.address, alice.address);
69-
expect(claimableBalance).to.be.eq(0);
68+
await expect(
69+
rewardsController.allClaimable(alice.address, alice.address, { gasLimit: 1_000_000 }),
70+
).to.be.revertedWithoutReason();
7071
});
7172
});
7273

0 commit comments

Comments
 (0)