Skip to content

Commit 21e6cf8

Browse files
committed
fix(tests): normalize root namespace in node-discovery timeout diagnostic
1 parent c4a75bd commit 21e6cf8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/hiroz-tests/tests/parameter_interop.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ fn wait_for_node(node_name: &str, router: &TestRouter, timeout: Duration) {
6060
.graph()
6161
.get_node_names()
6262
.iter()
63-
.map(|(name, ns)| format!("{ns}/{name}"))
63+
.map(|(name, ns)| {
64+
if ns == "/" {
65+
format!("/{name}")
66+
} else {
67+
format!("{ns}/{name}")
68+
}
69+
})
6470
.collect();
6571
panic!(
6672
"Timed out waiting for node {} after {:?}; nodes currently discovered: {:?}",

0 commit comments

Comments
 (0)