From 24ec642d495198749f9c3da37ecf42b42d869ff6 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:59:48 +1000 Subject: * add TOKEN and ITER env vars to identify test script * kill child process server when tests are done, not just parent --- scripts/test.js | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/test.js') diff --git a/scripts/test.js b/scripts/test.js index 28ac3778..69e9fdd6 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -34,6 +34,7 @@ server.stdout.on("data", (data) => { if (data.toString().toLowerCase().includes("listening")) { // we good :) console.log("we good"); + server.kill(); process.exit(); } }); -- cgit 1.5.1