summaryrefslogtreecommitdiff
path: root/std/http
diff options
context:
space:
mode:
Diffstat (limited to 'std/http')
-rw-r--r--std/http/file_server_test.ts6
-rw-r--r--std/http/racing_server_test.ts2
-rw-r--r--std/http/server_test.ts4
3 files changed, 6 insertions, 6 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index b7cd8a7e1..d7f939dad 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -9,7 +9,7 @@ let fileServer: Deno.Process;
const port = randomPort();
async function startFileServer(): Promise<void> {
fileServer = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"--allow-read",
@@ -109,7 +109,7 @@ test(async function serveWithUnorthodoxFilename(): Promise<void> {
test(async function servePermissionDenied(): Promise<void> {
const _port = randomPort();
const deniedServer = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"--allow-net",
@@ -143,7 +143,7 @@ test(async function servePermissionDenied(): Promise<void> {
test(async function printHelp(): Promise<void> {
const helpProcess = Deno.run({
- args: [Deno.execPath(), "run", "http/file_server.ts", "--help"],
+ cmd: [Deno.execPath(), "run", "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 2f88a4703..76b0e872d 100644
--- a/std/http/racing_server_test.ts
+++ b/std/http/racing_server_test.ts
@@ -8,7 +8,7 @@ const { connect, run, test } = Deno;
let server: Deno.Process;
async function startServer(): Promise<void> {
server = run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"-A",
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index d37111620..d9ce3ba97 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -358,7 +358,7 @@ test({
// Runs a simple server as another process
const port = randomPort();
const p = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"http/testdata/simple_server.ts",
@@ -405,7 +405,7 @@ test({
const port = randomPort();
// Runs a simple server as another process
const p = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"--allow-read",