0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

test(cli/tests/https_import): use ts file in localhost instead of remote (#7431)

This commit is contained in:
tokiedokie 2020-09-14 20:18:00 +09:00 committed by GitHub
parent bee36a4de8
commit e688a701e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,3 @@
// TODO Use https://localhost:4555/ but we need more infrastructure to
// support verifying self-signed certificates.
import { printHello } from "https://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
import { printHello } from "https://localhost:5545/cli/tests/subdir/print_hello.ts";
printHello();

View file

@ -2033,8 +2033,9 @@ itest!(exit_error42 {
});
itest!(https_import {
args: "run --quiet --reload https_import.ts",
args: "run --quiet --reload --cert tls/RootCA.pem https_import.ts",
output: "https_import.ts.out",
http_server: true,
});
itest!(if_main {

View file

@ -11,6 +11,7 @@ const fetchProc = Deno.run({
"--reload",
"--lock=lock_write_fetch.json",
"--lock-write",
"--cert=tls/RootCA.pem",
"https_import.ts",
],
});
@ -25,6 +26,7 @@ const fetchCheckProc = Deno.run({
Deno.execPath(),
"cache",
"--lock=lock_write_fetch.json",
"--cert=tls/RootCA.pem",
"https_import.ts",
],
});