Skip to content

Commit 8e8005b

Browse files
committed
make xo happy
1 parent 27c6236 commit 8e8005b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/api.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,10 @@ export default class Api extends Emittery {
218218
}
219219

220220
runStatus.on('stateChange', record => {
221-
if (record.testFile && !timedOutWorkerFiles.has(record.testFile)) {
221+
if (record.testFile && !timedOutWorkerFiles.has(record.testFile) && record.type !== 'worker-stderr' && record.type !== 'worker-stdout') {
222222
// Debounce the timer whenever there is activity from workers that
223223
// haven't already timed out.
224-
if (record.type !== 'worker-stderr' && record.type !== 'worker-stdout') {
225-
timeoutTrigger.debounce();
226-
}
224+
timeoutTrigger.debounce();
227225
}
228226

229227
if (failFast && (record.type === 'hook-failed' || record.type === 'test-failed' || record.type === 'worker-failed')) {

0 commit comments

Comments
 (0)