summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-10 12:28:59 +0100
committerGitHub <noreply@github.com>2024-09-10 11:28:59 +0000
commit9a169e3cf11cccec0dd1a6acbfdba927d99658f5 (patch)
tree165fa6f8727891df7c4c826177d7ea24fd121e55 /tests/unit
parent3f6afd19472c7a13f21b1083d80a563d9359a7ab (diff)
test: remove usage of `--unstable` flag (#25549)
This commit removes all occurrences of `--unstable` flag from all the tests that are run in CI. Turns out none of the tests actually required that flag anymore.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/README.md4
-rw-r--r--tests/unit/command_test.ts8
-rw-r--r--tests/unit/files_test.ts2
-rw-r--r--tests/unit/os_test.ts2
-rw-r--r--tests/unit/signal_test.ts1
5 files changed, 8 insertions, 9 deletions
diff --git a/tests/unit/README.md b/tests/unit/README.md
index af31c08fc..549a9d3ca 100644
--- a/tests/unit/README.md
+++ b/tests/unit/README.md
@@ -30,10 +30,10 @@ There are two ways to run `unit_test_runner.ts`:
```sh
# Run all tests.
-cargo run --bin deno -- test --allow-all --unstable --location=http://js-unit-tests/foo/bar cli/tests/unit/
+cargo run --bin deno -- test --allow-all --location=http://js-unit-tests/foo/bar cli/tests/unit/
# Run a specific test module
-cargo run --bin deno -- test --allow-all --unstable --location=http://js-unit-tests/foo/bar cli/tests/unit/files_test.ts
+cargo run --bin deno -- test --allow-all --location=http://js-unit-tests/foo/bar cli/tests/unit/files_test.ts
```
### Http server
diff --git a/tests/unit/command_test.ts b/tests/unit/command_test.ts
index 6352e1fc7..c11761fe7 100644
--- a/tests/unit/command_test.ts
+++ b/tests/unit/command_test.ts
@@ -528,7 +528,7 @@ Deno.test(
},
async function commandFailedWithSignal() {
const output = await new Deno.Command(Deno.execPath(), {
- args: ["eval", "--unstable", "Deno.kill(Deno.pid, 'SIGKILL')"],
+ args: ["eval", "Deno.kill(Deno.pid, 'SIGKILL')"],
}).output();
assertEquals(output.success, false);
if (Deno.build.os === "windows") {
@@ -547,7 +547,7 @@ Deno.test(
},
function commandSyncFailedWithSignal() {
const output = new Deno.Command(Deno.execPath(), {
- args: ["eval", "--unstable", "Deno.kill(Deno.pid, 'SIGKILL')"],
+ args: ["eval", "Deno.kill(Deno.pid, 'SIGKILL')"],
}).outputSync();
assertEquals(output.success, false);
if (Deno.build.os === "windows") {
@@ -835,7 +835,7 @@ Deno.test(
const command = await new Deno.Command(Deno.execPath(), {
cwd: Deno.args[0],
stdout: "piped",
- args: ["run", "-A", "--unstable", Deno.args[1]],
+ args: ["run", "-A", Deno.args[1]],
});
const child = command.spawn();
const readable = child.stdout.pipeThrough(new TextDecoderStream());
@@ -877,7 +877,7 @@ setInterval(() => {
Deno.execPath(),
{
cwd,
- args: ["run", "-A", "--unstable", programFile, cwd, childProgramFile],
+ args: ["run", "-A", programFile, cwd, childProgramFile],
},
).output();
diff --git a/tests/unit/files_test.ts b/tests/unit/files_test.ts
index b39b5f417..c79397109 100644
--- a/tests/unit/files_test.ts
+++ b/tests/unit/files_test.ts
@@ -929,7 +929,7 @@ function runFlockTestProcess(opts: { exclusive: boolean; sync: boolean }) {
`;
const process = new Deno.Command(Deno.execPath(), {
- args: ["eval", "--unstable", scriptText],
+ args: ["eval", scriptText],
stdin: "piped",
stdout: "piped",
stderr: "null",
diff --git a/tests/unit/os_test.ts b/tests/unit/os_test.ts
index 9503f75d1..52aa2ce77 100644
--- a/tests/unit/os_test.ts
+++ b/tests/unit/os_test.ts
@@ -172,7 +172,7 @@ Deno.test(
async function osPpidIsEqualToPidOfParentProcess() {
const decoder = new TextDecoder();
const { stdout } = await new Deno.Command(Deno.execPath(), {
- args: ["eval", "-p", "--unstable", "Deno.ppid"],
+ args: ["eval", "-p", "Deno.ppid"],
env: { NO_COLOR: "true" },
}).output();
diff --git a/tests/unit/signal_test.ts b/tests/unit/signal_test.ts
index 0c0676428..65b5ba78e 100644
--- a/tests/unit/signal_test.ts
+++ b/tests/unit/signal_test.ts
@@ -209,7 +209,6 @@ Deno.test(
const { code } = await new Deno.Command(Deno.execPath(), {
args: [
"eval",
- "--unstable",
"Deno.addSignalListener('SIGINT', () => {})",
],
}).output();