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

chore: reenable ignored integration tests (#6703)

This commit is contained in:
Bartek Iwańczuk 2020-07-11 18:29:55 +02:00 committed by GitHub
parent 98f6a5a47d
commit a26b4a9f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View file

@ -19,12 +19,23 @@ async function proxyRequest(req: ServerRequest): Promise<void> {
method: req.method,
headers: req.headers,
});
req.respond(resp);
req.respond({
status: resp.status,
body: new Uint8Array(await resp.arrayBuffer()),
headers: resp.headers,
});
}
async function testFetch(): Promise<void> {
const c = Deno.run({
cmd: [Deno.execPath(), "--reload", "--allow-net", "045_proxy_client.ts"],
cmd: [
Deno.execPath(),
"run",
"--quiet",
"--reload",
"--allow-net",
"045_proxy_client.ts",
],
stdout: "piped",
env: {
HTTP_PROXY: `http://${addr}`,
@ -40,8 +51,9 @@ async function testModuleDownload(): Promise<void> {
const http = Deno.run({
cmd: [
Deno.execPath(),
"--reload",
"cache",
"--reload",
"--quiet",
"http://localhost:4545/std/examples/colors.ts",
],
stdout: "piped",

View file

@ -1,7 +1,6 @@
local: [WILDCARD]https[WILDCARD]localhost_PORT5545[WILDCARD]
type: TypeScript
compiled: [WILDCARD].js
map: [WILDCARD].js.map
deps:
https://localhost:5545/cli/tests/cafile_info.ts
├── https://localhost:5545/cli/tests/subdir/mt_text_typescript.t1.ts

View file

@ -1237,6 +1237,7 @@ macro_rules! itest(
);
// Unfortunately #[ignore] doesn't work with itest!
#[allow(unused)]
macro_rules! itest_ignore(
($name:ident {$( $key:ident: $value:expr,)*}) => {
#[ignore]
@ -1346,12 +1347,6 @@ itest!(_023_no_ext_with_headers {
output: "023_no_ext_with_headers.out",
});
// FIXME(bartlomieju): this test should use remote file
itest_ignore!(_024_import_no_ext_with_headers {
args: "run --reload 024_import_no_ext_with_headers.ts",
output: "024_import_no_ext_with_headers.ts.out",
});
// TODO(lucacasonato): remove --unstable when permissions goes stable
itest!(_025_hrtime {
args: "run --quiet --allow-hrtime --unstable --reload 025_hrtime.ts",
@ -1515,8 +1510,8 @@ itest!(_044_bad_resource {
exit_code: 1,
});
itest_ignore!(_045_proxy {
args: "run --allow-net --allow-env --allow-run --reload 045_proxy_test.ts",
itest!(_045_proxy {
args: "run --allow-net --allow-env --allow-run --allow-read --reload --quiet 045_proxy_test.ts",
output: "045_proxy_test.ts.out",
http_server: true,
});
@ -2103,9 +2098,9 @@ itest!(cafile_eval {
http_server: true,
});
itest_ignore!(cafile_info {
itest!(cafile_info {
args:
"info --cert tls/RootCA.pem https://localhost:5545/cli/tests/cafile_info.ts",
"info --quiet --cert tls/RootCA.pem https://localhost:5545/cli/tests/cafile_info.ts",
output: "cafile_info.ts.out",
http_server: true,
});