Skip to content

Commit

Permalink
timeShift: explicitly pass resetEnd parameter in timeShift test
Browse files Browse the repository at this point in the history
After default value has changed, test fails to pass.
  • Loading branch information
Civil committed Nov 22, 2020
1 parent 54a349a commit 039613d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion expr/functions/timeShift/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ func TestTimeShift(t *testing.T) {
now32 := time.Now().Unix()

tests := []th.EvalTestItem{
// TODO(civil): Do not pass `true` resetEnd parameter in 0.15
{
`timeShift(metric1, "0s")`,
`timeShift(metric1, "0s", true)`,
map[parser.MetricRequest][]*types.MetricData{
{"metric1", 0, 1}: {types.MakeMetricData("metric1", []float64{0, 1, 2, 3, 4, 5}, 1, now32)},
},
Expand Down

0 comments on commit 039613d

Please sign in to comment.