From 840ff83781348ae32efd38d6c107bd040b88d52d Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 9 Dec 2024 15:10:57 -0300 Subject: [PATCH] fix: Bump timeout for anvil tests in ethereum package So they don't timeout on CI. --- yarn-project/ethereum/src/test/start_anvil.test.ts | 2 +- yarn-project/ethereum/src/test/tx_delayer.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/yarn-project/ethereum/src/test/start_anvil.test.ts b/yarn-project/ethereum/src/test/start_anvil.test.ts index 8efdff4452b..c27940a2f64 100644 --- a/yarn-project/ethereum/src/test/start_anvil.test.ts +++ b/yarn-project/ethereum/src/test/start_anvil.test.ts @@ -12,5 +12,5 @@ describe('start_anvil', () => { await anvil.stop(); expect(anvil.status).toEqual('idle'); - }); + }, 30000); }); diff --git a/yarn-project/ethereum/src/test/tx_delayer.test.ts b/yarn-project/ethereum/src/test/tx_delayer.test.ts index 1fc1435e80c..19f4b943a31 100644 --- a/yarn-project/ethereum/src/test/tx_delayer.test.ts +++ b/yarn-project/ethereum/src/test/tx_delayer.test.ts @@ -42,7 +42,7 @@ describe('tx_delayer', () => { const receipt = await client.waitForTransactionReceipt({ hash }); expect(receipt).toBeDefined(); expect(receipt.blockNumber).toEqual(blockNumber + 1n); - }); + }, 30000); it('delays a transaction until a given L1 block number', async () => { const blockNumber = await client.getBlockNumber({ cacheTime: 0 }); @@ -55,7 +55,7 @@ describe('tx_delayer', () => { logger.info(`Delayed tx sent. Awaiting receipt.`); const delayedTxReceipt = await client.waitForTransactionReceipt({ hash: delayedTxHash }); expect(delayedTxReceipt.blockNumber).toEqual(blockNumber + 3n); - }, 20000); + }, 30000); it('delays a transaction until a given L1 timestamp', async () => { const block = await client.getBlock({ includeTransactions: false }); @@ -69,7 +69,7 @@ describe('tx_delayer', () => { logger.info(`Delayed tx sent. Awaiting receipt.`); const delayedTxReceipt = await client.waitForTransactionReceipt({ hash: delayedTxHash }); expect(delayedTxReceipt.blockNumber).toEqual(block.number + 3n); - }, 20000); + }, 30000); it('delays a tx sent through a contract', async () => { const deployTxHash = await client.deployContract({ @@ -93,7 +93,7 @@ describe('tx_delayer', () => { logger.info(`Delayed tx sent. Awaiting receipt.`); const delayedTxReceipt = await client.waitForTransactionReceipt({ hash: delayedTxHash }); expect(delayedTxReceipt.blockNumber).toEqual(blockNumber + 3n); - }, 20000); + }, 30000); afterAll(async () => { await anvil.stop();