From 0e8300399dc0d21f4cc9ae7acbf816bf66a83bcf Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:49:32 -0500 Subject: [PATCH] fix: race condition in utilityProcess tests (#45956) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- spec/api-utility-process-spec.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/api-utility-process-spec.ts b/spec/api-utility-process-spec.ts index 5e6d4fe0380c..aa75aedda867 100644 --- a/spec/api-utility-process-spec.ts +++ b/spec/api-utility-process-spec.ts @@ -228,7 +228,6 @@ describe('utilityProcess module', () => { const child = utilityProcess.fork(fixtureFile, [], { stdio: 'pipe' }); - await once(child, 'spawn'); expect(child.stdout).to.not.be.null(); let log = ''; child.stdout!.on('data', (chunk) => { @@ -293,7 +292,6 @@ describe('utilityProcess module', () => { const child = utilityProcess.fork(path.join(fixturesPath, 'log.js'), [], { stdio: 'pipe' }); - await once(child, 'spawn'); expect(child.stdout).to.not.be.null(); let log = ''; child.stdout!.on('data', (chunk) => { @@ -326,7 +324,6 @@ describe('utilityProcess module', () => { const child = utilityProcess.fork(path.join(fixturesPath, 'log.js'), [], { stdio: ['ignore', 'pipe', 'pipe'] }); - await once(child, 'spawn'); expect(child.stderr).to.not.be.null(); let log = ''; child.stderr!.on('data', (chunk) => {