From 4cd37423e4e66bb9e784bbbf75620a449a179d35 Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Thu, 23 May 2024 00:10:04 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20hardhat:=20handle=20out-of-gas=20re?= =?UTF-8?q?vert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/hardhat/19_rewards_controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/hardhat/19_rewards_controller.ts b/test/hardhat/19_rewards_controller.ts index 69df44d6b..e80f7ca4d 100644 --- a/test/hardhat/19_rewards_controller.ts +++ b/test/hardhat/19_rewards_controller.ts @@ -65,8 +65,9 @@ describe("RewardsController", function () { }); it("AND calling allClaimable with invalid reward asset THEN the claimable amount is 0", async () => { - const claimableBalance = await rewardsController.allClaimable(alice.address, alice.address); - expect(claimableBalance).to.be.eq(0); + await expect( + rewardsController.allClaimable(alice.address, alice.address, { gasLimit: 1_000_000 }), + ).to.be.revertedWithoutReason(); }); });