Fixed failing dashboard sql test

This commit is contained in:
Torkel Ödegaard
2015-02-05 15:53:15 +01:00
parent edb7722ad6
commit e3764ad951
5 changed files with 17 additions and 3 deletions
+4
View File
@@ -117,6 +117,10 @@ func SearchDashboards(query *m.SearchDashboardsQuery) error {
params = append(params, query.Tag)
}
if query.Limit == 0 || query.Limit > 10000 {
query.Limit = 300
}
sql.WriteString(fmt.Sprintf(" LIMIT %d", query.Limit))
var res []DashboardSearchProjection
+1 -1
View File
@@ -53,7 +53,7 @@ func TestDashboardDataAccess(t *testing.T) {
Convey("Should be able to search for dashboard", func() {
query := m.SearchDashboardsQuery{
Title: "%test%",
Title: "test",
AccountId: 1,
}