diff --git a/packages/ethash/vite.config.ts b/packages/ethash/vite.config.ts new file mode 100644 index 0000000000..355a980bf3 --- /dev/null +++ b/packages/ethash/vite.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + testTimeout: 120_000, + }, +}) diff --git a/packages/evm/test/precompiles/09-blake2f.spec.ts b/packages/evm/test/precompiles/09-blake2f.spec.ts index 5eb045139f..5dd3235c8a 100644 --- a/packages/evm/test/precompiles/09-blake2f.spec.ts +++ b/packages/evm/test/precompiles/09-blake2f.spec.ts @@ -108,7 +108,7 @@ describe('Precompiles: BLAKE2F', () => { 'should generate expected value', ) assert.deepEqual(result.executionGasUsed, BigInt(t.gas), 'should use expected amount of gas') - }) + }, 20_000) } for (const t of malformedCases) { diff --git a/packages/mpt/test/util/genesisState.spec.ts b/packages/mpt/test/util/genesisState.spec.ts index 8b479b7347..986dcdf6b0 100644 --- a/packages/mpt/test/util/genesisState.spec.ts +++ b/packages/mpt/test/util/genesisState.spec.ts @@ -27,4 +27,4 @@ it('should correctly derive mainnet stateRoot from ethereumjs genesis', async () '0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544', 'mainnet stateRoot matches', ) -}) +}, 20_000) diff --git a/packages/statemanager/test/statefulVerkleStateManager.spec.ts b/packages/statemanager/test/statefulVerkleStateManager.spec.ts index e6df97a87c..115dfaab36 100644 --- a/packages/statemanager/test/statefulVerkleStateManager.spec.ts +++ b/packages/statemanager/test/statefulVerkleStateManager.spec.ts @@ -96,7 +96,7 @@ describe('Verkle Tree API tests', () => { matchingBytesLength(retrievedReallyBigByteCode, reallyBigByteCode), reallyBigByteCode.length, ) - }) + }, 120_000) it('should put and get storage', async () => { const zeroSlot = setLengthLeft(bigIntToBytes(0n), 32) const zeroSlotValue = hexToBytes('0x1') diff --git a/packages/statemanager/test/vmState.spec.ts b/packages/statemanager/test/vmState.spec.ts index 64079ff27e..244c52b3ab 100644 --- a/packages/statemanager/test/vmState.spec.ts +++ b/packages/statemanager/test/vmState.spec.ts @@ -32,7 +32,7 @@ describe('stateManager', () => { expectedStateRoot, `generateCanonicalGenesis should produce correct state root for mainnet from common`, ) - }) + }, 10_000) it(`should generate the genesis state root correctly for all other chains`, async () => { const chains: [Chain, Uint8Array][] = [ diff --git a/packages/tx/test/eip4844.spec.ts b/packages/tx/test/eip4844.spec.ts index cf0e895941..43fac82add 100644 --- a/packages/tx/test/eip4844.spec.ts +++ b/packages/tx/test/eip4844.spec.ts @@ -516,7 +516,7 @@ describe('Network wrapper tests', () => { undefined, "throws when versioned hashes don't match kzg commitments", ) - }) + }, 20_000) }) describe('hash() and signature verification', () => { diff --git a/packages/tx/test/t9n.spec.ts b/packages/tx/test/t9n.spec.ts index 3e6e03550a..ad529464d0 100644 --- a/packages/tx/test/t9n.spec.ts +++ b/packages/tx/test/t9n.spec.ts @@ -105,7 +105,7 @@ function runTests(filePath: string) { assert.ok(true, 'RLP decoding successfully failed') } } - }) + }, 20_000) } } }) diff --git a/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts b/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts index bdf2dc23fb..597ec93d55 100644 --- a/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts +++ b/packages/vm/test/api/EIPs/eip-2935-historical-block-hashes.spec.ts @@ -310,6 +310,6 @@ describe('EIP 2935: historical block hashes', () => { const blockHashI = await testBlockhashContract(vm, block, BigInt(i)) assert.ok(equalsBytes(blockHashI, setLengthLeft(bigIntToBytes(BigInt(0)), 32))) } - }) + }, 10_000) } })