From d6261432b922dff8d99c450b8ae0f371472c0585 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Wed, 13 Jul 2022 14:13:35 +0200 Subject: [PATCH] Exit runtime --- lib/runtime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/runtime.js b/lib/runtime.js index 45bef88..149b7ed 100644 --- a/lib/runtime.js +++ b/lib/runtime.js @@ -33,7 +33,7 @@ process.on('message', async message => { process.send({ outage: mapped }); } - break; + process.exit(); case 'testOne': if (!message.service) { @@ -44,10 +44,10 @@ process.on('message', async message => { const result = await testEndpoints(service.autotest); process.send({ outage: result }); } - break; + process.exit(); default: console.error('Unknown command:', message.command); - break; + process.exit(); } });