Skip to content

Commit

Permalink
Add extra test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesketh committed Sep 20, 2024
1 parent 5887baf commit 0874d4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/streamingpromql/testdata/ours/aggregators.test
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,13 @@ eval range from 0m to 4m step 1m avg(series)

clear

# Make sure count doesn't emit a 0 when there are no values
# Make sure count and group don't emit a 0 when there are no values
load 1m
series{label="a"} _ 9
series{label="b"} _ 9

eval range from 0m to 1m step 1m count(series)
{} _ 2

eval range from 0m to 1m step 1m group(series)
{} _ 1

0 comments on commit 0874d4c

Please sign in to comment.