Skip to content

Commit

Permalink
chore: Try fix e2e token test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 10, 2024
1 parent e515e6e commit 691cef7
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions yarn-project/end-to-end/src/fixtures/snapshot_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { MNEMONIC } from './fixtures.js';
import { getACVMConfig } from './get_acvm_config.js';
import { getBBConfig } from './get_bb_config.js';
import { setupL1Contracts } from './setup_l1_contracts.js';
import { type SetupOptions, createAndSyncProverNode, getPrivateKeyFromIndex } from './utils.js';
import { type SetupOptions, createAndSyncProverNode, getLogger, getPrivateKeyFromIndex } from './utils.js';
import { getEndToEndTestTelemetryClient } from './with_telemetry_utils.js';

export type SubsystemsContext = {
Expand Down Expand Up @@ -243,13 +243,23 @@ async function teardown(context: SubsystemsContext | undefined) {
if (!context) {
return;
}
await context.proverNode?.stop();
await context.aztecNode.stop();
await context.pxe.stop();
await context.acvmConfig?.cleanup();
await context.anvil.stop();
await context.watcher.stop();
context.timer?.uninstall();
try {
getLogger().verbose('Tearing down subsystems...');
await context.proverNode?.stop();
await context.aztecNode.stop();
await context.pxe.stop();
await context.acvmConfig?.cleanup();
await context.anvil.stop();
await context.watcher.stop();
context.timer?.uninstall();
} catch (err) {
try {
getLogger().error('Error during teardown', err);
} catch (err2) {
// eslint-disable-next-line no-console
console.error(`Error logging teardown error`, err, err2);
}
}
}

/**
Expand Down

0 comments on commit 691cef7

Please sign in to comment.