provisioning: uses unix epoch timestamps. (#10907)
* provisioning: uses unix epoch timestamps.
This commit is contained in:
@@ -31,7 +31,7 @@ func TestDashboardProvisioningTest(t *testing.T) {
|
||||
DashboardProvisioning: &models.DashboardProvisioning{
|
||||
Name: "default",
|
||||
ExternalId: "/var/grafana.json",
|
||||
Updated: now,
|
||||
Updated: now.Unix(),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ func TestDashboardProvisioningTest(t *testing.T) {
|
||||
|
||||
So(len(query.Result), ShouldEqual, 1)
|
||||
So(query.Result[0].DashboardId, ShouldEqual, dashId)
|
||||
So(query.Result[0].Updated.Unix(), ShouldEqual, now.Unix())
|
||||
So(query.Result[0].Updated, ShouldEqual, now.Unix())
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user