Skip to content

Commit

Permalink
test: make integration::workers::workers test inspectable (denoland#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Jul 27, 2021
1 parent a05bb39 commit f47c550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
25 changes: 5 additions & 20 deletions cli/tests/integration/worker_tests.rs
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.

use crate::itest;
use test_util as util;

#[test]
fn workers() {
let _g = util::http_server();
let status = util::deno_cmd()
.current_dir(util::tests_path())
.arg("test")
.arg("--reload")
.arg("--location")
.arg("http:https://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!(workers {
args: "test --reload --location http:https://127.0.0.1:4545/cli/tests/ --allow-net --allow-read --unstable workers/test.ts",
output: "workers/test.ts.out",
http_server: true,
});

itest!(worker_error {
args: "run -A workers/worker_error.ts",
Expand Down
3 changes: 3 additions & 0 deletions cli/tests/workers/test.ts.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[WILDCARD]
test result: ok. [WILDCARD] passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]ms)

0 comments on commit f47c550

Please sign in to comment.