From 384ab025e0239479a086ec8affd12f30be80dfea Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 7 Feb 2024 18:06:05 +0100 Subject: [PATCH] promql: Expose issue #11708 The shorter range in the test makes early points drop out of the range in range queries, exposing the issue. Signed-off-by: beorn7 --- promql/testdata/functions.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/promql/testdata/functions.test b/promql/testdata/functions.test index c40a6272bc..4e104e406e 100644 --- a/promql/testdata/functions.test +++ b/promql/testdata/functions.test @@ -221,19 +221,19 @@ eval instant at 50m deriv(testcounter_reset_middle[100m]) # intercept at t=0: 6.818181818181818 # intercept at t=3000: 38.63636363636364 # intercept at t=3000+3600: 76.81818181818181 -eval instant at 50m predict_linear(testcounter_reset_middle[100m], 3600) +eval instant at 50m predict_linear(testcounter_reset_middle[50m], 3600) {} 76.81818181818181 # intercept at t = 3000+3600 = 6600 -eval instant at 50m predict_linear(testcounter_reset_middle[100m] @ 3000, 3600) +eval instant at 50m predict_linear(testcounter_reset_middle[50m] @ 3000, 3600) {} 76.81818181818181 # intercept at t = 600+3600 = 4200 -eval instant at 10m predict_linear(testcounter_reset_middle[100m] @ 3000, 3600) +eval instant at 10m predict_linear(testcounter_reset_middle[50m] @ 3000, 3600) {} 51.36363636363637 # intercept at t = 4200+3600 = 7800 -eval instant at 70m predict_linear(testcounter_reset_middle[100m] @ 3000, 3600) +eval instant at 70m predict_linear(testcounter_reset_middle[50m] @ 3000, 3600) {} 89.54545454545455 # With http_requests, there is a sample value exactly at the end of