From b122e1811c558f1f4eefda30c78b93f61f60a6b9 Mon Sep 17 00:00:00 2001 From: Denis DelGrosso <85250797+ddelgrosso1@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:37:57 -0400 Subject: [PATCH] test: exit with non zero code on error (#2179) --- internal-tooling/performanceTest.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal-tooling/performanceTest.ts b/internal-tooling/performanceTest.ts index a87aded80..9f661017d 100644 --- a/internal-tooling/performanceTest.ts +++ b/internal-tooling/performanceTest.ts @@ -103,6 +103,9 @@ function createWorker() { }); w.on('error', e => { log(e, true, true); + // BBMC will not report errors unless the process is terminated with a non zero code. + // eslint-disable-next-line no-process-exit + process.exit(1); }); }