From 1b9e061ed447b87a8f455298ad958fb41dd6ecf2 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 27 Sep 2023 20:13:09 +0200 Subject: [PATCH] fix: Fixed broken test due to refactor --- test/index.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index da53d3d..34ba46c 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -93,17 +93,14 @@ describe("VRF Test Suite", function () { }); it("When paused it catches up the specified amount of blocks", async () => { - (userArgs.allowedSenders as string[]).push(user.address); - - // Simulates request to ignore - await inbox.connect(user).requestRandomness(mockConsumer.address, data); + await mockConsumer.connect(user).requestRandomness(); // Triggers pause condition for (let i = 0; i < 1001; ++i) ethers.provider.send("evm_mine", []); // Spams requests, only the last MAX_RANGE * MAX_REQUESTS should be picked up for (let i = 0; i < 1000; ++i) { - await inbox.connect(user).requestRandomness(mockConsumer.address, data); + await mockConsumer.connect(user).requestRandomness(); } const exec = await vrf.run({ userArgs });