From 4da77abdb84eb184f7da47efda2e15552bfc016c Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Tue, 20 Oct 2026 17:03:32 +0800 Subject: [PATCH] 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. --- src/promql/src/native/execute/tests.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/promql/src/native/execute/tests.rs b/src/promql/src/native/execute/tests.rs index 35373802ede..8ffa6f5fc53 100644 --- a/src/promql/src/native/execute/tests.rs +++ b/src/promql/src/native/execute/tests.rs @@ -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"