Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOneTony committed Nov 27, 2023
1 parent 2ec23da commit f4dd75b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions e2e-tests-with-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ require('dotenv').config(); // Initialize dotenv to load environment variables
// When tests are complete, kill the Anvil nodes
testProcess.on('close', (code) => {
console.debug(`Tests finished running, killing anvil nodes...`);
anvilMainnet.kill();
anvilOptimism.kill();
try {
anvilMainnet.kill();
anvilOptimism.kill();
console.debug('Anvil nodes terminated successfully.');
} catch (error) {
console.error(`Error terminating Anvil nodes: ${error}`);
}

// Exit with an error code if tests failed
if (!testPassed) {
Expand Down

0 comments on commit f4dd75b

Please sign in to comment.