Skip to content

Commit d9922ef

Browse files
committed
test(e2e): migrate e2e_2_pxes and e2e_lending_contract to FAST_E2E_SETUP_OPTS
Both already used PIPELINING_SETUP_OPTS. The plan flagged them as second-batch out of caution; verified neither has hand-rolled cc.eth.warp/dateProvider.setTime helpers that would conflict with the wave-1 cheat-code audit.
1 parent 7952b21 commit d9922ef

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

yarn-project/aztec/src/testing/checkpoint_auto_prover.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ describe('CheckpointAutoProver', () => {
134134

135135
// The archiver tip advances to 3 immediately, so each checkpoint's wait resolves right away.
136136
getL2Tips.mockResolvedValue(makeTips(3));
137-
markAsProven.mockImplementation(async (n?: CheckpointNumber) => {
137+
markAsProven.mockImplementation((n?: CheckpointNumber) => {
138138
if (n !== undefined) {
139139
promotedAt.push(n);
140140
}
141+
return Promise.resolve();
141142
});
142143

143144
prover.start();

yarn-project/end-to-end/src/e2e_2_pxes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ChildContract } from '@aztec/noir-test-contracts.js/Child';
99

1010
import { expect, jest } from '@jest/globals';
1111

12-
import { PIPELINING_SETUP_OPTS } from './fixtures/fixtures.js';
12+
import { FAST_E2E_SETUP_OPTS } from './fixtures/fixtures.js';
1313
import { deployToken, expectTokenBalance, mintTokensToPrivate } from './fixtures/token_utils.js';
1414
import { setup, setupPXEAndGetWallet } from './fixtures/utils.js';
1515
import { TestWallet } from './test-wallet/test_wallet.js';
@@ -53,7 +53,7 @@ describe('e2e_2_pxes', () => {
5353
accounts: [accountAAddress],
5454
logger,
5555
teardown: teardownA,
56-
} = await setup(1, { ...PIPELINING_SETUP_OPTS, numberOfInitialFundedAccounts: 3 }));
56+
} = await setup(1, { ...FAST_E2E_SETUP_OPTS, numberOfInitialFundedAccounts: 3 }));
5757

5858
({
5959
wallet: walletB,

yarn-project/end-to-end/src/e2e_lending_contract.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { TokenContract } from '@aztec/noir-contracts.js/Token';
1212

1313
import { afterAll, jest } from '@jest/globals';
1414

15-
import { PIPELINING_SETUP_OPTS } from './fixtures/fixtures.js';
15+
import { FAST_E2E_SETUP_OPTS } from './fixtures/fixtures.js';
1616
import type { EndToEndContext } from './fixtures/setup.js';
1717
import { mintTokensToPrivate } from './fixtures/token_utils.js';
1818
import { ensureAccountContractsPublished, setup } from './fixtures/utils.js';
@@ -81,7 +81,7 @@ describe('e2e_lending_contract', () => {
8181
};
8282

8383
beforeAll(async () => {
84-
const ctx = await setup(1, { ...PIPELINING_SETUP_OPTS });
84+
const ctx = await setup(1, { ...FAST_E2E_SETUP_OPTS });
8585
({
8686
teardown,
8787
logger,

0 commit comments

Comments
 (0)