diff --git a/tests-integration/tests/http.rs b/tests-integration/tests/http.rs index dd98c664a56..aa3fbdf4727 100644 --- a/tests-integration/tests/http.rs +++ b/tests-integration/tests/http.rs @@ -5909,9 +5909,9 @@ async fn native_histogram_composition_query( assert!( descriptions.iter().any(|description| { description.lines().any(|line| { - let mut words = line.split_whitespace(); - matches!(words.next(), Some("root" | "input" | "left" | "right")) - && words.next() == Some("Binary") + // A tree line names its node first, so a `Binary` line is a binary node wherever it + // sits in the tree. + matches!(line.split_whitespace().next(), Some("Binary" | "Binary:")) }) }), "`{query}` did not execute a native Binary: {descriptions:?}; response: {body}"