Skip to content

Commit e6f491b

Browse files
alexghrmverzilli
authored andcommitted
chore: deflake
1 parent e8a2420 commit e6f491b

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

yarn-project/aztec/src/cli/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function shutdown(logFn: LogFn, exitCode: ExitCode, cb?: Array<() => Prom
3636

3737
logFn('Shutting down...', { exitCode });
3838
if (cb) {
39-
shutdownPromise = Promise.allSettled(cb).then(() => process.exit(exitCode));
39+
shutdownPromise = Promise.allSettled(cb.map(fn => fn())).then(() => process.exit(exitCode));
4040
} else {
4141
// synchronously shuts down the process
4242
// no need to set shutdownPromise on this branch of the if statement because no more code will be executed

yarn-project/end-to-end/scripts/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
cpus: 4
1212
cpuset: ${CPU_LIST:-}
1313
mem_limit: 8G
14+
stop_grace_period: 60s
1415
volumes:
1516
- ../../../:/root/aztec-packages
1617
- ${HOME}/.bb-crs:/root/.bb-crs

yarn-project/end-to-end/src/fixtures/setup.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ async function getTelemetryClient(partialConfig: Partial<TelemetryClientConfig>
103103
}
104104
return telemetry;
105105
}
106-
if (typeof afterAll === 'function') {
107-
afterAll(async () => {
108-
await telemetry?.stop();
109-
});
110-
}
111106

112107
export const getPrivateKeyFromIndex = (index: number): Buffer | null => {
113108
const hdAccount = mnemonicToAccount(MNEMONIC, { addressIndex: index });
@@ -675,6 +670,12 @@ export async function setup(
675670
await tryRmDir(directoryToCleanup, logger);
676671
} catch (err) {
677672
logger.error(`Error during e2e test teardown`, err);
673+
} finally {
674+
try {
675+
await telemetryClient?.stop();
676+
} catch (err) {
677+
logger.error(`Error during telemetry client stop`, err);
678+
}
678679
}
679680
};
680681

yarn-project/simulator/src/public/public_tx_simulator/cpp_public_tx_simulator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ export class CppPublicTxSimulator extends PublicTxSimulator implements PublicTxS
100100
contractProvider,
101101
wsCppHandle,
102102
logLevel,
103-
this.log,
103+
// TODO: re-enable logging
104+
undefined,
104105
this.cancellationToken,
105106
);
106107

0 commit comments

Comments
 (0)