unit tests

This commit is contained in:
Luna Yao
2026-04-28 05:12:27 +02:00
parent 185777b741
commit fb4479a99f
2 changed files with 3 additions and 88 deletions
-15
View File
@@ -300,15 +300,6 @@ mod tests {
}
}
async fn build_test_node() -> DnsNode {
let runtime = build_test_runtime().await;
DnsNode::new(
runtime.peer_mgr.clone(),
runtime.global_ctx.clone(),
runtime.nic_ctx.clone(),
)
}
async fn start_recording_rpc_server(
resync_on_first: bool,
) -> anyhow::Result<(
@@ -543,10 +534,4 @@ mod tests {
assert_eq!(node.id(), node.global_ctx.get_id());
}
#[tokio::test]
async fn stop_without_start_is_ok() {
let node = build_test_node().await;
node.stop().await.unwrap();
}
}