1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-13 16:26:08 -05:00

test(std): remove unstable from multiple tests (#6882)

This commit is contained in:
Trivikram Kamat 2020-07-26 12:52:08 -07:00 committed by GitHub
parent 7326e1ab49
commit c8fc679329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View file

@ -9,13 +9,11 @@ async function startServer(): Promise<
Deno.Process<Deno.RunOptions & { stdout: "piped" }> Deno.Process<Deno.RunOptions & { stdout: "piped" }>
> { > {
const server = Deno.run({ const server = Deno.run({
// TODO(lucacasonato): remove unstable once possible
cmd: [ cmd: [
Deno.execPath(), Deno.execPath(),
"run", "run",
"--allow-net", "--allow-net",
"--allow-read", "--allow-read",
"--unstable",
"server.ts", "server.ts",
], ],
cwd: "examples/chat", cwd: "examples/chat",

View file

@ -203,8 +203,7 @@ for (const s of scenes) {
); );
try { try {
// TODO(lucacasonato): remove unstable when stabilized const args = [Deno.execPath(), "run"];
const args = [Deno.execPath(), "run", "--unstable"];
if (s.read) { if (s.read) {
args.push("--allow-read"); args.push("--allow-read");

View file

@ -112,8 +112,7 @@ for (const s of scenes) {
let title = `test ${s.async ? "exists" : "existsSync"}("testdata/${s.file}")`; let title = `test ${s.async ? "exists" : "existsSync"}("testdata/${s.file}")`;
title += ` ${s.read ? "with" : "without"} --allow-read`; title += ` ${s.read ? "with" : "without"} --allow-read`;
Deno.test(`[fs] existsPermission ${title}`, async function (): Promise<void> { Deno.test(`[fs] existsPermission ${title}`, async function (): Promise<void> {
// TODO(lucacasonato): remove unstable when stabilized const args = [Deno.execPath(), "run"];
const args = [Deno.execPath(), "run", "--unstable"];
if (s.read) { if (s.read) {
args.push("--allow-read"); args.push("--allow-read");

View file

@ -5,8 +5,7 @@ import { TextProtoReader } from "../textproto/mod.ts";
let server: Deno.Process<Deno.RunOptions & { stdout: "piped" }>; let server: Deno.Process<Deno.RunOptions & { stdout: "piped" }>;
async function startServer(): Promise<void> { async function startServer(): Promise<void> {
server = Deno.run({ server = Deno.run({
// TODO(lucacasonato): remove unstable when stabilized cmd: [Deno.execPath(), "run", "-A", "http/racing_server.ts"],
cmd: [Deno.execPath(), "run", "--unstable", "-A", "http/racing_server.ts"],
stdout: "piped", stdout: "piped",
}); });
// Once racing server is ready it will write to its stdout. // Once racing server is ready it will write to its stdout.