Skip to content

Commit 039613d

Browse files
author
Vladimir Smirnov
committed
timeShift: explicitly pass resetEnd parameter in timeShift test
After default value has changed, test fails to pass.
1 parent 54a349a commit 039613d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

expr/functions/timeShift/function_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ func TestTimeShift(t *testing.T) {
2525
now32 := time.Now().Unix()
2626

2727
tests := []th.EvalTestItem{
28+
// TODO(civil): Do not pass `true` resetEnd parameter in 0.15
2829
{
29-
`timeShift(metric1, "0s")`,
30+
`timeShift(metric1, "0s", true)`,
3031
map[parser.MetricRequest][]*types.MetricData{
3132
{"metric1", 0, 1}: {types.MakeMetricData("metric1", []float64{0, 1, 2, 3, 4, 5}, 1, now32)},
3233
},

0 commit comments

Comments
 (0)