From 261f30280b4391865c68ac90a73521371a121b2c Mon Sep 17 00:00:00 2001 From: OneTony Date: Mon, 27 Nov 2023 11:53:06 +0200 Subject: [PATCH] fix: workflow --- e2e-tests-with-nodes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e-tests-with-nodes.js b/e2e-tests-with-nodes.js index 532d523..47973b4 100644 --- a/e2e-tests-with-nodes.js +++ b/e2e-tests-with-nodes.js @@ -32,7 +32,10 @@ require('dotenv').config(); // Initialize dotenv to load environment variables anvilOptimism.kill(); // Exit with an error code if tests failed - if (!testPassed) process.exitCode = 1; + if (!testPassed) { + console.error('Tests failed. Setting exit code to 1.'); + proccess.exit(1); + } }); })();