From 653c36b8c9ba693dfc1c679ef770dbd5075b2b80 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 11 May 2020 20:19:39 +0200 Subject: [PATCH] test: skip "handles Promise timeouts correctly" when ELECTRON_RUN_AS_NODE is disabled (#23415) --- spec-main/node-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-main/node-spec.ts b/spec-main/node-spec.ts index 0c3d28ad3207..cbd9666780b6 100644 --- a/spec-main/node-spec.ts +++ b/spec-main/node-spec.ts @@ -308,7 +308,7 @@ describe('node feature', () => { expect(result.status).to.equal(0); }); - it('handles Promise timeouts correctly', (done) => { + ifit(features.isRunAsNodeEnabled())('handles Promise timeouts correctly', (done) => { const scriptPath = path.join(fixtures, 'module', 'node-promise-timer.js'); const child = childProcess.spawn(process.execPath, [scriptPath], { env: { ELECTRON_RUN_AS_NODE: 'true' }