Skip to content

Commit 10537e1

Browse files
committed
add debugging messages for flaky test
1 parent 30ab5b5 commit 10537e1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/core/src/shared/utilities/processUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ export class ChildProcessTracker {
8585
}
8686

8787
private cleanUp() {
88+
console.log('in clean up')
8889
const terminatedProcesses = Array.from(this.#pids.values()).filter(
8990
(pid: number) => this.#processByPid.get(pid)?.stopped
9091
)
9192
for (const pid of terminatedProcesses) {
93+
console.log('removing %s', pid)
9294
this.delete(pid)
9395
}
9496
}

packages/core/src/test/shared/utilities/processUtils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ describe('ChildProcessTracker', function () {
407407
assert.strictEqual(tracker.has(childProcess2), true, 'Missing second process')
408408

409409
childProcess1.stop()
410+
console.log('child process 1 stopped')
410411
await clock.tickAsync(ChildProcessTracker.pollingInterval)
411412
assert.strictEqual(tracker.has(childProcess2), true, 'second process was mistakenly removed')
412413
assert.strictEqual(tracker.has(childProcess1), false, 'first process was not removed after stopping it')

0 commit comments

Comments
 (0)