From 80e22111416751ce34dbc5cb32ffa9f293517370 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 30 Apr 2020 17:23:40 +0200 Subject: Unstable methods should not appear in runtime or d.ts (#4957) Co-authored-by: Kitson Kelly --- std/http/file_server_test.ts | 19 +++++++++++++++++-- std/http/racing_server_test.ts | 3 ++- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'std/http') diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index 8be35621c..d471c1519 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -12,6 +12,7 @@ async function startFileServer(): Promise { cmd: [ Deno.execPath(), "run", + "--unstable", "--allow-read", "--allow-net", "http/file_server.ts", @@ -105,7 +106,14 @@ test("serveWithUnorthodoxFilename", async function (): Promise { test("servePermissionDenied", async function (): Promise { const deniedServer = Deno.run({ - cmd: [Deno.execPath(), "run", "--allow-net", "http/file_server.ts"], + // TODO(lucacasonato): remove unstable when stabilized + cmd: [ + Deno.execPath(), + "run", + "--unstable", + "--allow-net", + "http/file_server.ts", + ], stdout: "piped", stderr: "piped", }); @@ -132,7 +140,14 @@ test("servePermissionDenied", async function (): Promise { test("printHelp", async function (): Promise { const helpProcess = Deno.run({ - cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"], + // TODO(lucacasonato): remove unstable when stabilized + cmd: [ + Deno.execPath(), + "run", + "--unstable", + "http/file_server.ts", + "--help", + ], stdout: "piped", }); assert(helpProcess.stdout != null); diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts index 90961f7f8..845e5a490 100644 --- a/std/http/racing_server_test.ts +++ b/std/http/racing_server_test.ts @@ -6,7 +6,8 @@ const { connect, run, test } = Deno; let server: Deno.Process; async function startServer(): Promise { server = run({ - cmd: [Deno.execPath(), "run", "-A", "http/racing_server.ts"], + // TODO(lucacasonato): remove unstable when stabilized + cmd: [Deno.execPath(), "run", "--unstable", "-A", "http/racing_server.ts"], stdout: "piped", }); // Once racing server is ready it will write to its stdout. -- cgit v1.2.3