Skip to content

Commit

Permalink
fix: Fixed broken test due to refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Sep 27, 2023
1 parent 26cfc80 commit 1b9e061
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 1b9e061

Please sign in to comment.