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` ); });