summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-09-19 14:48:05 -0400
committerGitHub <noreply@github.com>2019-09-19 14:48:05 -0400
commit56ac638d93c96712d6c624e60dcfa4540d334b18 (patch)
treeb3b5b985cc5be83545d8883207ee614f23627ef8 /cli/worker.rs
parent1b1ae65a4a2acd55ead86c17e388f10a0e08938d (diff)
Remove test.py, use cargo test as test frontend (#2967)
Fixes #2933
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index a14a22610..b92cef58e 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -201,10 +201,11 @@ mod tests {
#[test]
fn execute_006_url_imports() {
+ let http_server_guard = crate::test_util::http_server();
let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
- .join("tests/006_url_imports.ts")
+ .join("cli/tests/006_url_imports.ts")
.to_owned();
let module_specifier =
ModuleSpecifier::resolve_url_or_path(&p.to_string_lossy()).unwrap();
@@ -232,6 +233,7 @@ mod tests {
assert_eq!(metrics.resolve_count.load(Ordering::SeqCst), 3);
// Check that we've only invoked the compiler once.
assert_eq!(metrics.compiler_starts.load(Ordering::SeqCst), 1);
+ drop(http_server_guard);
}
fn create_test_worker() -> Worker {