From 8844b38745f9afb278b5376de5d0da51bc34d79e Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 15 Mar 2021 20:18:22 +0200 Subject: [PATCH] app/vmselect/promql: fix tests after 2dae0a2c47a116c0020ae7965b43d88f0c6f0c11 --- app/vmselect/promql/exec_test.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/vmselect/promql/exec_test.go b/app/vmselect/promql/exec_test.go index 05eafe22c..e8e2a75c9 100644 --- a/app/vmselect/promql/exec_test.go +++ b/app/vmselect/promql/exec_test.go @@ -67,10 +67,11 @@ func TestExecSuccess(t *testing.T) { AccountID: accountID, ProjectID: projectID, }, - Start: start, - End: end, - Step: step, - Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""), + Start: start, + End: end, + Step: step, + Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""), + RoundDigits: 100, } for i := 0; i < 5; i++ { result, err := Exec(ec, q, false) @@ -6589,10 +6590,11 @@ func TestExecError(t *testing.T) { AccountID: 123, ProjectID: 567, }, - Start: 1000, - End: 2000, - Step: 100, - Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""), + Start: 1000, + End: 2000, + Step: 100, + Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""), + RoundDigits: 100, } for i := 0; i < 4; i++ { rv, err := Exec(ec, q, false)