Skip to content

Commit e688a70

Browse files
authored
test(cli/tests/https_import): use ts file in localhost instead of remote (#7431)
1 parent bee36a4 commit e688a70

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cli/tests/https_import.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// TODO Use https://localhost:4555/ but we need more infrastructure to
2-
// support verifying self-signed certificates.
3-
import { printHello } from "https://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts";
1+
import { printHello } from "https://localhost:5545/cli/tests/subdir/print_hello.ts";
42

53
printHello();

cli/tests/integration_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,8 +2033,9 @@ itest!(exit_error42 {
20332033
});
20342034

20352035
itest!(https_import {
2036-
args: "run --quiet --reload https_import.ts",
2036+
args: "run --quiet --reload --cert tls/RootCA.pem https_import.ts",
20372037
output: "https_import.ts.out",
2038+
http_server: true,
20382039
});
20392040

20402041
itest!(if_main {

cli/tests/lock_write_fetch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const fetchProc = Deno.run({
1111
"--reload",
1212
"--lock=lock_write_fetch.json",
1313
"--lock-write",
14+
"--cert=tls/RootCA.pem",
1415
"https_import.ts",
1516
],
1617
});
@@ -25,6 +26,7 @@ const fetchCheckProc = Deno.run({
2526
Deno.execPath(),
2627
"cache",
2728
"--lock=lock_write_fetch.json",
29+
"--cert=tls/RootCA.pem",
2830
"https_import.ts",
2931
],
3032
});

0 commit comments

Comments
 (0)