Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Bump timeout for anvil tests in ethereum package #10549

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion yarn-project/ethereum/src/test/start_anvil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ describe('start_anvil', () => {

await anvil.stop();
expect(anvil.status).toEqual('idle');
});
}, 30000);
});
8 changes: 4 additions & 4 deletions yarn-project/ethereum/src/test/tx_delayer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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 });
Expand All @@ -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({
Expand All @@ -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();
Expand Down
Loading