☕️ Classic, reliable, trusted test framework for Node.js and the browser
test: widen --exit detection window (#6293)
MaheshDesuee3a4b1340a4
diff --git a/test/integration/options/exit.spec.cjs b/test/integration/options/exit.spec.cjsindex eba2c9c9..203c963e 100644--- a/test/integration/options/exit.spec.cjs+++ b/test/integration/options/exit.spec.cjs@@ -52,11 +52,13 @@ describe("--exit", function () {done();});+ var waitForExitMs = shouldExit ? 30000 : timeout - 500;+// If this callback happens, then Mocha didn't automatically exit.timeoutObj = setTimeout(function () {didExit = false;killSubprocess();- }, timeout - 500);+ }, waitForExitMs);};};