minor change: more accurate variable name (#8449)
This commit is contained in:
committed by
Torkel Ödegaard
parent
12c8bf9b18
commit
6541ffe045
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user