From aeb8fdc62f2eec7aeb95cf702e5dcb9a9a2ba9c7 Mon Sep 17 00:00:00 2001 From: benesjan Date: Mon, 23 Dec 2024 20:49:04 +0000 Subject: [PATCH] increasing timeouts --- .../end-to-end/src/composed/e2e_sandbox_example.test.ts | 3 +++ yarn-project/end-to-end/src/guides/dapp_testing.test.ts | 4 ++++ yarn-project/end-to-end/src/guides/up_quick_start.test.ts | 3 +++ yarn-project/end-to-end/src/shared/browser.ts | 3 +++ 4 files changed, 13 insertions(+) diff --git a/yarn-project/end-to-end/src/composed/e2e_sandbox_example.test.ts b/yarn-project/end-to-end/src/composed/e2e_sandbox_example.test.ts index 4b7b34e47a6..faeaaba6529 100644 --- a/yarn-project/end-to-end/src/composed/e2e_sandbox_example.test.ts +++ b/yarn-project/end-to-end/src/composed/e2e_sandbox_example.test.ts @@ -56,6 +56,7 @@ import { getSchnorrAccount } from '@aztec/accounts/schnorr'; import { getDeployedTestAccountsWallets } from '@aztec/accounts/testing'; import { Fr, GrumpkinScalar, type PXE, createLogger, createPXEClient, waitForPXE } from '@aztec/aztec.js'; +import { jest } from '@jest/globals'; import { format } from 'util'; // docs:end:imports @@ -64,6 +65,8 @@ import { deployToken, mintTokensToPrivate } from '../fixtures/token_utils.js'; const { PXE_URL = 'http://localhost:8080' } = process.env; describe('e2e_sandbox_example', () => { + jest.setTimeout(60_000); + it('sandbox example works', async () => { // docs:start:setup ////////////// CREATE THE CLIENT INTERFACE AND CONTACT THE SANDBOX ////////////// diff --git a/yarn-project/end-to-end/src/guides/dapp_testing.test.ts b/yarn-project/end-to-end/src/guides/dapp_testing.test.ts index 6364517d223..0448544372a 100644 --- a/yarn-project/end-to-end/src/guides/dapp_testing.test.ts +++ b/yarn-project/end-to-end/src/guides/dapp_testing.test.ts @@ -7,12 +7,16 @@ import { TestContract } from '@aztec/noir-contracts.js/Test'; // docs:end:import_contract import { TokenContract } from '@aztec/noir-contracts.js/Token'; +import { jest } from '@jest/globals'; + import { U128_UNDERFLOW_ERROR } from '../fixtures/fixtures.js'; import { mintTokensToPrivate } from '../fixtures/token_utils.js'; const { PXE_URL = 'http://localhost:8080', ETHEREUM_HOST = 'http://localhost:8545' } = process.env; describe('guides/dapp/testing', () => { + jest.setTimeout(60_000); + describe('on local sandbox', () => { beforeAll(async () => { // docs:start:create_pxe_client diff --git a/yarn-project/end-to-end/src/guides/up_quick_start.test.ts b/yarn-project/end-to-end/src/guides/up_quick_start.test.ts index 1fc6920a1f9..e530b850fd4 100644 --- a/yarn-project/end-to-end/src/guides/up_quick_start.test.ts +++ b/yarn-project/end-to-end/src/guides/up_quick_start.test.ts @@ -1,11 +1,14 @@ import { createAztecNodeClient, waitForNode } from '@aztec/aztec.js'; +import { jest } from '@jest/globals'; import { execSync } from 'child_process'; const { AZTEC_NODE_URL = '' } = process.env; // Entrypoint for running the up-quick-start script on the CI describe('guides/up_quick_start', () => { + jest.setTimeout(60_000); + // TODO: update to not use CLI it('works', async () => { await waitForNode(createAztecNodeClient(AZTEC_NODE_URL)); diff --git a/yarn-project/end-to-end/src/shared/browser.ts b/yarn-project/end-to-end/src/shared/browser.ts index b1b2f3fd863..f55dd85275e 100644 --- a/yarn-project/end-to-end/src/shared/browser.ts +++ b/yarn-project/end-to-end/src/shared/browser.ts @@ -6,6 +6,7 @@ import * as AztecJs from '@aztec/aztec.js'; import { TokenContractArtifact } from '@aztec/noir-contracts.js/Token'; import { contractArtifactToBuffer } from '@aztec/types/abi'; +import { jest } from '@jest/globals'; import getPort from 'get-port'; import { type Server } from 'http'; import Koa from 'koa'; @@ -55,6 +56,8 @@ export const browserTestSuite = ( pageLogger: AztecJs.Logger, ) => describe('e2e_aztec.js_browser', () => { + jest.setTimeout(60_000); + const initialBalance = 33n; const transferAmount = 3n;