From 042c239a562c52bcfc0db456b15af7f40a9b5549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Jamr=C3=B3z?= Date: Mon, 22 Jul 2024 09:22:41 +0200 Subject: [PATCH] Query History: Enable query history test (#90597) * Enable query history test * Fix time range in the test --- pkg/services/queryhistory/queryhistory_search_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/services/queryhistory/queryhistory_search_test.go b/pkg/services/queryhistory/queryhistory_search_test.go index e81a216466f..18e1bcc9e7f 100644 --- a/pkg/services/queryhistory/queryhistory_search_test.go +++ b/pkg/services/queryhistory/queryhistory_search_test.go @@ -271,9 +271,8 @@ func TestIntegrationGetQueriesFromQueryHistory(t *testing.T) { testScenarioWithMixedQueriesInQueryHistory(t, "When users tries to get queries with mixed data source it should return correct queries", func(t *testing.T, sc scenarioContext) { - t.Skip() // This test fails a lot at the moment - sc.reqContext.Req.Form.Add("to", strconv.FormatInt(sc.service.now().UnixMilli()-60, 10)) - sc.reqContext.Req.Form.Add("from", strconv.FormatInt(sc.service.now().UnixMilli()+60, 10)) + sc.reqContext.Req.Form.Add("to", strconv.FormatInt(sc.service.now().UnixMilli(), 10)) + sc.reqContext.Req.Form.Add("from", strconv.FormatInt(sc.service.now().UnixMilli()-60*1000, 10)) sc.reqContext.Req.Form.Add("datasourceUid", testDsUID1) resp := sc.service.searchHandler(sc.reqContext)