test: improve http_proxy test (#3185)

This commit is contained in:
Yoshiya Hinosawa 2019-10-22 22:52:41 +09:00 committed by Ry Dahl
parent ea8231af33
commit ec44b5b6af
4 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
async function main(): Promise<void> {
const res = await fetch("http://deno.land/welcome.ts");
const res = await fetch("http://localhost:4545/std/examples/colors.ts");
console.log(`Response http: ${await res.text()}`);
}

View file

@ -49,7 +49,7 @@ async function testModuleDownload(): Promise<void> {
"--no-prompt",
"--reload",
"fetch",
"http://deno.land/welcome.ts"
"http://localhost:4545/std/examples/colors.ts"
],
stdout: "piped",
env: {

View file

@ -1,3 +1,4 @@
Proxy server listening on [WILDCARD]
Proxy request to: http://deno.land/welcome.ts
Proxy request to: http://deno.land/welcome.ts
Proxy request to: http://localhost:4545/std/examples/colors.ts
Proxy request to: http://localhost:4545/std/examples/colors.ts
Proxy request to: http://localhost:4545/std/fmt/colors.ts

View file

@ -314,6 +314,7 @@ itest!(_044_bad_resource {
itest!(_045_proxy {
args: "run --allow-net --allow-env --allow-run --reload 045_proxy_test.ts",
output: "045_proxy_test.ts.out",
http_server: true,
});
itest!(_046_tsx {