Commit 08b37186 by Torkel Ödegaard

fix: fixed failing sql unit test

parent 5225e428
......@@ -25,6 +25,7 @@ func GetDashboardVersion(query *m.GetDashboardVersionQuery) error {
return m.ErrDashboardVersionNotFound
}
version.Data.Set("id", version.DashboardId)
query.Result = &version
return nil
}
......
......@@ -45,6 +45,7 @@ func TestGetDashboardVersion(t *testing.T) {
OrgId: savedDash.OrgId,
Slug: savedDash.Slug,
}
err = GetDashboard(&dashCmd)
So(err, ShouldBeNil)
eq := reflect.DeepEqual(dashCmd.Result.Data, query.Result.Data)
......
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