diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-19 00:32:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 00:32:21 +0200 |
commit | edca01c35e7f3f76ec98dd912314db16995e2a4f (patch) | |
tree | bb6d5e3ce0a406648b19c6ea1388856738eecf19 /cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js | |
parent | b7e19134b8706b0497bdcd02c3f620f3d5b319b0 (diff) |
chore: disable flaky Node compat tests (#18760)
I'm not able to reproduce any of the failures from CI on my machine.
I'm going to disable these tests for now as they are holding us back.
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js b/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js deleted file mode 100644 index fe3e8765e..000000000 --- a/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js +++ /dev/null @@ -1,66 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -// Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 18.12.1 -// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually - -// TODO(PolarETech): The args passed to promisified() should not need to -// include "require.ts". - -'use strict'; - -const common = require('../common'); -const assert = require('assert'); -const { promisify } = require('util'); -const execFile = require('child_process').execFile; -const fixtures = require('../common/fixtures'); - -const echoFixture = fixtures.path('echo.js'); -const promisified = promisify(execFile); -const invalidArgTypeError = { - code: 'ERR_INVALID_ARG_TYPE', - name: 'TypeError' -}; - -{ - // Verify that the signal option works properly - const ac = new AbortController(); - const signal = ac.signal; - const promise = promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - - ac.abort(); - - assert.rejects( - promise, - { name: 'AbortError' } - ).then(common.mustCall()); -} - -{ - // Verify that the signal option works properly when already aborted - const signal = AbortSignal.abort(); - - assert.rejects( - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }), - { name: 'AbortError' } - ).then(common.mustCall()); -} - -{ - // Verify that if something different than Abortcontroller.signal - // is passed, ERR_INVALID_ARG_TYPE is thrown - const signal = {}; - assert.throws(() => { - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - }, invalidArgTypeError); -} - -{ - // Verify that if something different than Abortcontroller.signal - // is passed, ERR_INVALID_ARG_TYPE is thrown - const signal = 'world!'; - assert.throws(() => { - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - }, invalidArgTypeError); -} |