Commit 6541ffe0 by Prasanna Gautam Committed by Torkel Ödegaard

minor change: more accurate variable name (#8449)

parent 12c8bf9b
...@@ -52,8 +52,8 @@ func TestTimeRange(t *testing.T) { ...@@ -52,8 +52,8 @@ func TestTimeRange(t *testing.T) {
}) })
Convey("now-10m ", func() { Convey("now-10m ", func() {
fiveMinAgo, _ := time.ParseDuration("-10m") tenMinAgo, _ := time.ParseDuration("-10m")
expected := now.Add(fiveMinAgo) expected := now.Add(tenMinAgo)
res, err := tr.ParseTo() res, err := tr.ParseTo()
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(res.Unix(), ShouldEqual, expected.Unix()) So(res.Unix(), ShouldEqual, expected.Unix())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment