From b9fcc81695eae37169afb90c05865e48a8feb6f4 Mon Sep 17 00:00:00 2001 From: Neeraj Gartia Date: Tue, 28 Jan 2025 02:10:36 +0530 Subject: [PATCH] adds tests for timestamp() Signed-off-by: Neeraj Gartia --- promql/promqltest/testdata/functions.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/promql/promqltest/testdata/functions.test b/promql/promqltest/testdata/functions.test index 23d0101566..9bcb7e6945 100644 --- a/promql/promqltest/testdata/functions.test +++ b/promql/promqltest/testdata/functions.test @@ -419,7 +419,7 @@ clear # Tests for vector, time and timestamp. load 10s - metric 1 1 + metric 1 1 {{schema:0 sum:1 count:1}} eval instant at 0s timestamp(metric) {} 0 @@ -436,6 +436,9 @@ eval instant at 10s timestamp(metric) eval instant at 10s timestamp(((metric))) {} 10 +eval instant at 20s timestamp(metric) + {} 20 + # Tests for label_join. load 5m testmetric{src="a",src1="b",src2="c",dst="original-destination-value"} 0