diff --git a/test/integration/execute.js b/test/integration/execute.js index 2c758ecc..88d9e7d4 100644 --- a/test/integration/execute.js +++ b/test/integration/execute.js @@ -45,6 +45,9 @@ const whenThreadsComplete = (t, vm, uri, timeLimit = 5000) => const timeoutId = setTimeout(() => { t.fail(`Timeout waiting for threads to complete: ${uri}`); reject(new Error('time limit reached')); + + // Attempt to stop the lingering VM from interfering with other tests. + vm.quit(); }, timeLimit); // Clear the interval to allow the process to exit