From 870f74455da12fdcfb4b9b299944e6d549dc76f7 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Tue, 5 Dec 2023 22:55:28 +0900 Subject: [PATCH] ci: increase timeout --- spec/api-utility-process-spec.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/spec/api-utility-process-spec.ts b/spec/api-utility-process-spec.ts index 73e262c419..9a3e42aba4 100644 --- a/spec/api-utility-process-spec.ts +++ b/spec/api-utility-process-spec.ts @@ -58,14 +58,16 @@ describe('utilityProcess module', () => { expect(code).to.equal(0); }); - it('emits \'exit\' when child process crashes', async () => { + it('emits \'exit\' when child process crashes', async function () { + this.timeout(180000); const child = utilityProcess.fork(path.join(fixturesPath, 'crash.js')); // Do not check for exit code in this case, // SIGSEGV code can be 139 or 11 across our different CI pipeline. await once(child, 'exit'); }); - it('emits \'exit\' corresponding to the child process', async () => { + it('emits \'exit\' corresponding to the child process', async function () { + this.timeout(180000); const child1 = utilityProcess.fork(path.join(fixturesPath, 'endless.js')); await once(child1, 'spawn'); const child2 = utilityProcess.fork(path.join(fixturesPath, 'crash.js')); @@ -95,7 +97,8 @@ describe('utilityProcess module', () => { }); describe('app \'child-process-gone\' event', () => { - it('with default serviceName', async () => { + it('with default serviceName', async function () { + this.timeout(180000); utilityProcess.fork(path.join(fixturesPath, 'crash.js')); const [, details] = await once(app, 'child-process-gone') as [any, Electron.Details]; expect(details.type).to.equal('Utility'); @@ -104,7 +107,8 @@ describe('utilityProcess module', () => { expect(details.reason).to.be.oneOf(['crashed', 'abnormal-exit']); }); - it('with custom serviceName', async () => { + it('with custom serviceName', async function () { + this.timeout(180000); utilityProcess.fork(path.join(fixturesPath, 'crash.js'), [], { serviceName: 'Hello World!' }); const [, details] = await once(app, 'child-process-gone') as [any, Electron.Details]; expect(details.type).to.equal('Utility');