test: skip "handles Promise timeouts correctly" when ELECTRON_RUN_AS_NODE is disabled (#23415)

This commit is contained in:
Milan Burda 2020-05-11 20:19:39 +02:00 committed by GitHub
parent 4af5c55c8d
commit 653c36b8c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' }