test(promql): pin the empty-map output count at one

The test checked that every output was empty and that exactly one closed, which a stray extra
non-closing empty output would also satisfy.
This commit is contained in:
discord9
2026-10-20 18:05:42 +08:00
parent c575199ab6
commit 4da77abdb8
+5
View File
@@ -1936,6 +1936,11 @@ fn an_emptying_operation_hands_on_nothing_until_it_closes_the_series() {
}
out.extend(execution.finish().expect("the window closed its series"));
assert_eq!(
out.len(),
1,
"an emptying series handed on more than the one chunk that closes it"
);
assert!(
out.iter().all(|chunk| chunk.series.time.is_empty()),
"the outer window produced a value for a series that held none"