Skip to content

Commit

Permalink
Expand concurrent queries test to include new functions that support …
Browse files Browse the repository at this point in the history
…native histograms
  • Loading branch information
charleskorn committed Aug 8, 2024
1 parent 33fef8f commit 1794e9e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pkg/streamingpromql/engine_concurrency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func TestConcurrentQueries(t *testing.T) {

testCases := []concurrentQueryTestCase{
{
// Rate over native histogram
expr: `rate(native_histogram[5m])`,
start: startT,
end: startT.Add(10 * time.Minute),
Expand All @@ -62,6 +61,24 @@ func TestConcurrentQueries(t *testing.T) {
end: startT.Add(10 * time.Minute),
step: time.Minute,
},
{
expr: `count_over_time(native_histogram[5m])`,
start: startT,
end: startT.Add(10 * time.Minute),
step: time.Minute,
},
{
expr: `sum_over_time(native_histogram[5m])`,
start: startT,
end: startT.Add(10 * time.Minute),
step: time.Minute,
},
{
expr: `avg_over_time(native_histogram[5m])`,
start: startT,
end: startT.Add(10 * time.Minute),
step: time.Minute,
},
}

storage := promqltest.LoadedStorage(t, data)
Expand Down

0 comments on commit 1794e9e

Please sign in to comment.