Skip to content

Commit

Permalink
restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Jan 21, 2025
1 parent a1ee230 commit 784b4a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/evm/hardhat/SpokePool.Deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ describe("SpokePool Depositor Logic", async function () {
...getDepositArgsFromRelayData({ ...relayData, fillDeadline: currentTime.add(fillDeadlineBuffer).add(1) })
)
).to.be.revertedWith("InvalidFillDeadline");
await expect(
spokePool.connect(depositor)[SpokePoolFuncs.depositV3Bytes](
// fillDeadline in past
...getDepositArgsFromRelayData({ ...relayData, fillDeadline: currentTime.sub(1) })
)
).to.not.be.reverted;
await expect(
spokePool.connect(depositor)[SpokePoolFuncs.depositV3Bytes](
// fillDeadline right at the buffer is OK
Expand Down

0 comments on commit 784b4a8

Please sign in to comment.