diff --git a/src/promql/src/map/tests.rs b/src/promql/src/map/tests.rs index 63963761c57..c1a405d1d24 100644 --- a/src/promql/src/map/tests.rs +++ b/src/promql/src/map/tests.rs @@ -32,6 +32,8 @@ use datatypes::series::{Label, MetricName}; use super::*; use crate::functions::IeeeSqrt; +mod prometheus; + fn schema(names: &[&str]) -> SeriesSchema { SeriesSchema { fields: names diff --git a/src/promql/src/map/tests/prometheus.rs b/src/promql/src/map/tests/prometheus.rs index 05aada80070..ca9b7d43d03 100644 --- a/src/promql/src/map/tests/prometheus.rs +++ b/src/promql/src/map/tests/prometheus.rs @@ -225,7 +225,7 @@ fn math_matches_prometheus() { let output = case .series .iter() - .map(|series| map_math(&case.schema, series, op).unwrap()) + .filter_map(|series| map_math(&case.schema, series, op).unwrap()) .collect(); assert_result(case, output); matched += 1;