diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-05-04 10:40:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 10:40:18 -0400 |
commit | 92c0591fcbf74ee34e7bc0518376d8fdb38feb30 (patch) | |
tree | 7b3976a2ad0d06fd8fc8f44045bdd603302ffbdf /cli/tests/integration_tests.rs | |
parent | 1500547afa9c7784967f1915398bc4e1b3a18e08 (diff) |
simplify unit tests: compiler_api, workers (#5073)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 1d02226b4..456c6eece 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -952,16 +952,37 @@ itest!(deno_test { output: "deno_test.out", }); -itest!(workers { - args: "test --reload --allow-net workers_test.ts", - http_server: true, - output: "workers_test.out", -}); +#[test] +fn workers() { + let g = util::http_server(); + let status = util::deno_cmd() + .current_dir(util::tests_path()) + .arg("test") + .arg("--reload") + .arg("--allow-net") + .arg("workers_test.ts") + .spawn() + .unwrap() + .wait() + .unwrap(); + assert!(status.success()); + drop(g); +} -itest!(compiler_api { - args: "test --unstable --reload compiler_api_test.ts", - output: "compiler_api_test.out", -}); +#[test] +fn compiler_api() { + let status = util::deno_cmd() + .current_dir(util::tests_path()) + .arg("test") + .arg("--unstable") + .arg("--reload") + .arg("compiler_api_test.ts") + .spawn() + .unwrap() + .wait() + .unwrap(); + assert!(status.success()); +} itest!(_027_redirect_typescript { args: "run --reload 027_redirect_typescript.ts", |