Skip to content

Commit

Permalink
increasing timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Dec 23, 2024
1 parent 8efb452 commit b9eb782
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 //////////////
Expand Down
4 changes: 4 additions & 0 deletions yarn-project/end-to-end/src/guides/dapp_testing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/end-to-end/src/guides/up_quick_start.test.ts
Original file line number Diff line number Diff line change
@@ -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));
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/end-to-end/src/shared/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit b9eb782

Please sign in to comment.