Skip to content

Commit 2bd890f

Browse files
committed
Disable timeouts in debug mode
Fixes #2355.
1 parent 15d73ca commit 2bd890f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Api extends Emittery {
6969
const pendingWorkers = new Set();
7070
const timedOutWorkerFiles = new Set();
7171
let restartTimer;
72-
if (apiOptions.timeout) {
72+
if (apiOptions.timeout && !apiOptions.debug) {
7373
const timeout = ms(apiOptions.timeout);
7474

7575
restartTimer = debounce(() => {

lib/cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ exports.run = async () => { // eslint-disable-line complexity
219219
if (isCi) {
220220
exit('Debugging is not available in CI.');
221221
}
222+
223+
if (combined.timeout) {
224+
console.log(chalk.magenta(` ${figures.warning} The timeout option has been disabled to help with debugging.`));
225+
}
222226
}
223227

224228
if (Reflect.has(combined, 'concurrency') && (!Number.isInteger(combined.concurrency) || combined.concurrency < 0)) {

0 commit comments

Comments
 (0)