database: fixes after xorm update

This commit is contained in:
Daniel Lee
2018-03-16 00:08:25 +01:00
parent 1c20126f87
commit 5a3ba68a9c
6 changed files with 22 additions and 9 deletions

View File

@@ -46,6 +46,7 @@ func TestDashboardFolderDataAccess(t *testing.T) {
OrgId: 1, DashboardIds: []int64{folder.Id, dashInRoot.Id},
}
err := SearchDashboards(query)
So(err, ShouldBeNil)
So(len(query.Result), ShouldEqual, 1)
So(query.Result[0].Id, ShouldEqual, dashInRoot.Id)