mirror of
https://github.com/denoland/deno.git
synced 2025-01-22 06:09:25 -05:00
chore: remove op_spawn_child test (#22314)
This test is not needed because the op is not available to user code anymore. This brings number of ops exposed to user code down to 15.
This commit is contained in:
parent
a2e5ff7348
commit
0e10efb834
3 changed files with 1 additions and 24 deletions
|
@ -4761,25 +4761,6 @@ fn permission_prompt_strips_ansi_codes_and_control_chars() {
|
|||
console.expect("undefined");
|
||||
console.write_line_raw(r#"const moveANSIStart = "\u001b[1000D";"#);
|
||||
console.expect("undefined");
|
||||
|
||||
console.write_line_raw(
|
||||
r#"Deno[Deno.internal].core.ops.op_spawn_child({
|
||||
cmd: "cat",
|
||||
args: ["file.txt"],
|
||||
clearEnv: false,
|
||||
cwd: undefined,
|
||||
env: [],
|
||||
uid: undefined,
|
||||
gid: undefined,
|
||||
stdin: "null",
|
||||
stdout: "inherit",
|
||||
stderr: "piped",
|
||||
signal: undefined,
|
||||
windowsRawArguments: false,
|
||||
}, moveANSIUp + clearANSI + moveANSIStart + prompt)"#,
|
||||
);
|
||||
|
||||
console.expect(r#"┌ ⚠️ Deno requests run access to "cat""#);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
const EXPECTED_OP_COUNT = 16;
|
||||
const EXPECTED_OP_COUNT = 15;
|
||||
|
||||
Deno.test(function checkExposedOps() {
|
||||
// @ts-ignore TS doesn't allow to index with symbol
|
||||
|
|
|
@ -585,10 +585,6 @@ const NOT_IMPORTED_OPS = [
|
|||
"op_set_exit_code",
|
||||
"op_napi_open",
|
||||
"op_npm_process_state",
|
||||
|
||||
// TODO(bartlomieju): used in a regression test, but probably not needed
|
||||
// anymore if ops are not user accessible.
|
||||
"op_spawn_child",
|
||||
];
|
||||
|
||||
function removeImportedOps() {
|
||||
|
|
Loading…
Add table
Reference in a new issue