summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs17
1 files changed, 5 insertions, 12 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 8b7a52906..9214fad33 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -604,7 +604,7 @@ mod tests {
#[ignore]
#[tokio::test]
async fn source_graph_fetch() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/019_media_types.ts",
@@ -692,12 +692,11 @@ mod tests {
},
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_definitions.ts",
@@ -749,13 +748,11 @@ mod tests {
));
assert!(graph
.contains_key("http://localhost:4545/cli/tests/type_definitions/qat.ts"));
-
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references2() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_directives_02.ts",
@@ -799,12 +796,11 @@ mod tests {
}
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references3() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_directives_01.ts",
@@ -842,12 +838,11 @@ mod tests {
}
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_different_langs() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
// ModuleGraphLoader was mistakenly parsing this file as TSX
// https://github.com/denoland/deno/issues/5867
@@ -860,8 +855,6 @@ mod tests {
build_graph(&module_specifier)
.await
.expect("Failed to build graph");
-
- drop(http_server_guard);
}
}