remove --no-prompt flag, fail on missing permissions (#3183)

This commit is contained in:
Yoshiya Hinosawa 2019-10-23 08:35:43 +09:00 committed by Ry Dahl
parent edd6a90da8
commit 2804ba8674
9 changed files with 68 additions and 199 deletions

View file

@ -24,13 +24,7 @@ async function proxyRequest(req: ServerRequest): Promise<void> {
async function testFetch(): Promise<void> {
const c = Deno.run({
args: [
Deno.execPath(),
"--no-prompt",
"--reload",
"--allow-net",
"045_proxy_client.ts"
],
args: [Deno.execPath(), "--reload", "--allow-net", "045_proxy_client.ts"],
stdout: "piped",
env: {
HTTP_PROXY: `http://${addr}`
@ -46,7 +40,6 @@ async function testModuleDownload(): Promise<void> {
const http = Deno.run({
args: [
Deno.execPath(),
"--no-prompt",
"--reload",
"fetch",
"http://localhost:4545/std/examples/colors.ts"