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(); } });