0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

test: make integration::workers::workers test inspectable (#11524)

This commit is contained in:
Bartek Iwańczuk 2021-07-27 02:11:38 +02:00 committed by GitHub
parent a05bb3924a
commit f47c550100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 20 deletions

View file

@ -1,27 +1,12 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
use crate::itest; use crate::itest;
use test_util as util;
#[test] itest!(workers {
fn workers() { args: "test --reload --location http://127.0.0.1:4545/cli/tests/ --allow-net --allow-read --unstable workers/test.ts",
let _g = util::http_server(); output: "workers/test.ts.out",
let status = util::deno_cmd() http_server: true,
.current_dir(util::tests_path()) });
.arg("test")
.arg("--reload")
.arg("--location")
.arg("http://127.0.0.1:4545/cli/tests/")
.arg("--allow-net")
.arg("--allow-read")
.arg("--unstable")
.arg("workers/test.ts")
.spawn()
.unwrap()
.wait()
.unwrap();
assert!(status.success());
}
itest!(worker_error { itest!(worker_error {
args: "run -A workers/worker_error.ts", args: "run -A workers/worker_error.ts",

View file

@ -0,0 +1,3 @@
[WILDCARD]
test result: ok. [WILDCARD] passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)