From acb8c90ec828f233b4514bb6fc10f471ea47eb2e Mon Sep 17 00:00:00 2001 From: Ruben Vargas Date: Wed, 13 Dec 2023 23:38:37 -0600 Subject: [PATCH] Add more integration tests Signed-off-by: Ruben Vargas --- integration/e2e/api_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/integration/e2e/api_test.go b/integration/e2e/api_test.go index 7c2f1073f7a..3c8e929d403 100644 --- a/integration/e2e/api_test.go +++ b/integration/e2e/api_test.go @@ -165,15 +165,14 @@ func TestSearchTagValuesV2(t *testing.T) { // Assert tags on storage backend now := time.Now() - startOfDay := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, now.Location()) - endOfDay := time.Date(now.Year(), now.Month(), now.Day(), 23, 59, 59, 999999999, now.Location()) + start := now.Add(-2 * time.Hour) + end := now.Add(2 * time.Hour) for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - callSearchTagValuesAndAssert(t, tempo, tc.tagName, tc.query, searchTagValuesResponse{}, startOfDay.Unix(), endOfDay.Unix()) + callSearchTagValuesAndAssert(t, tempo, tc.tagName, tc.query, searchTagValuesResponse{}, start.Unix(), end.Unix()) }) } - } func callSearchTagValuesAndAssert(t *testing.T, svc *e2e.HTTPService, tagName, query string, expected searchTagValuesResponse, start, end int64) {