mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user