Skip to content

Commit ee3a4b1

Browse files
test: widen --exit detection window (#6293)
Co-authored-by: Mostafa Nazari <[email protected]>
1 parent 3cb22d1 commit ee3a4b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/integration/options/exit.spec.cjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ describe("--exit", function () {
5252
done();
5353
});
5454

55+
var waitForExitMs = shouldExit ? 30000 : timeout - 500;
56+
5557
// If this callback happens, then Mocha didn't automatically exit.
5658
timeoutObj = setTimeout(function () {
5759
didExit = false;
5860
killSubprocess();
59-
}, timeout - 500);
61+
}, waitForExitMs);
6062
};
6163
};
6264

0 commit comments

Comments
 (0)