Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesGuthrie committed Feb 9, 2022
1 parent 20bad22 commit 225629a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/tests/end_to_end_tests/promql_query_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,10 @@ func TestPromQLQueryEndpoint(t *testing.T) {
name: "pushdown with range smaller than instant vector lookback",
query: `rate(metric_2[1m]) / metric_2`,
},
{
name: "pushdown with range smaller than instant vector lookback and offset",
query: `rate(metric_2[1m]) / metric_2 offset 2m`,
},
}
start := time.Unix(startTime/1000, 0)
end := time.Unix(endTime/1000, 0)
Expand Down

0 comments on commit 225629a

Please sign in to comment.