From 5b98b4e8bf2139ca98a06dd5be5786067ca90a47 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:06:22 +0100 Subject: [PATCH] Simplify test --- test/SpokePoolClient.fills.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/SpokePoolClient.fills.ts b/test/SpokePoolClient.fills.ts index caa6a339d..de5885c90 100644 --- a/test/SpokePoolClient.fills.ts +++ b/test/SpokePoolClient.fills.ts @@ -170,14 +170,13 @@ describe("SpokePoolClient: Fills", function () { expect(fillBlock).to.be.undefined; await buildFill(spokePool, destErc20, depositor, relayer1, deposit, 1); - const lateBlockNumber = await spokePool.provider.getBlockNumber(); - await hre.network.provider.send("evm_mine"); await hre.network.provider.send("evm_mine"); + const lateBlockNumber = await spokePool.provider.getBlockNumber(); // Now search for the fill _after_ it was filled and expect an exception. const [srcChain, dstChain] = [getNetworkName(deposit.originChainId), getNetworkName(deposit.destinationChainId)]; await assertPromiseError( - findFillBlock(spokePool, deposit as RelayData, lateBlockNumber + 1), + findFillBlock(spokePool, deposit as RelayData, lateBlockNumber), `${srcChain} deposit ${deposit.depositId} filled on ${dstChain} before block` ); });