mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: race condition in utilityProcess tests (#45953)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -213,7 +213,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) => {
|
||||
@@ -278,7 +277,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) => {
|
||||
@@ -311,7 +309,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) => {
|
||||
|
||||
Reference in New Issue
Block a user