From bd4e45d9ddd32e4eab1e19cc1a8c7f6f213d1b1d Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Fri, 8 Jan 2021 10:16:31 +0100 Subject: [PATCH] actually add a test that cover the previous mistake :) Signed-off-by: Cyril Tovena --- pkg/logql/functions_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/logql/functions_test.go b/pkg/logql/functions_test.go index 7e06a42fb187d..47cc804168e85 100644 --- a/pkg/logql/functions_test.go +++ b/pkg/logql/functions_test.go @@ -56,6 +56,7 @@ func Test_Extractor(t *testing.T) { )`, `sum_over_time({namespace="tns"} |= "level=error" | json |foo>=5,bar<25ms | unwrap latency | __error__!~".*" | foo >5[5m])`, `absent_over_time({namespace="tns"} |= "level=error" | json |foo>=5,bar<25ms | unwrap latency | __error__!~".*" | foo >5[5m])`, + `absent_over_time({namespace="tns"} |= "level=error" | json [5m])`, `sum by (job) ( sum_over_time( {namespace="tns"} |= "level=error" | json | avg=5 and bar<25ms | unwrap duration(latency) | __error__!~".*" [5m]