mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed unit tests
This commit is contained in:
parent
8daff73ba2
commit
ccbdb29f07
@ -114,7 +114,7 @@ func TestDashboardDataAccess(t *testing.T) {
|
|||||||
Convey("Should be able to search for a dashboard folder's children", func() {
|
Convey("Should be able to search for a dashboard folder's children", func() {
|
||||||
query := search.FindPersistedDashboardsQuery{
|
query := search.FindPersistedDashboardsQuery{
|
||||||
OrgId: 1,
|
OrgId: 1,
|
||||||
FolderId: savedFolder.Id,
|
FolderIds: []int64{savedFolder.Id},
|
||||||
SignedInUser: &m.SignedInUser{OrgId: 1},
|
SignedInUser: &m.SignedInUser{OrgId: 1},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ func TestDashboardDataAccess(t *testing.T) {
|
|||||||
|
|
||||||
query := search.FindPersistedDashboardsQuery{
|
query := search.FindPersistedDashboardsQuery{
|
||||||
OrgId: 1,
|
OrgId: 1,
|
||||||
FolderId: savedFolder.Id,
|
FolderIds: []int64{savedFolder.Id},
|
||||||
SignedInUser: &m.SignedInUser{},
|
SignedInUser: &m.SignedInUser{},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ func TestDeleteExpiredVersions(t *testing.T) {
|
|||||||
versionsToWrite := 10
|
versionsToWrite := 10
|
||||||
setting.DashboardVersionsToKeep = versionsToKeep
|
setting.DashboardVersionsToKeep = versionsToKeep
|
||||||
|
|
||||||
savedDash := insertTestDashboard("test dash 53", 1, "diff-all")
|
savedDash := insertTestDashboard("test dash 53", 1, 0, false, "diff-all")
|
||||||
for i := 0; i < versionsToWrite-1; i++ {
|
for i := 0; i < versionsToWrite-1; i++ {
|
||||||
updateTestDashboard(savedDash, map[string]interface{}{
|
updateTestDashboard(savedDash, map[string]interface{}{
|
||||||
"tags": "different-tag",
|
"tags": "different-tag",
|
||||||
|
Loading…
Reference in New Issue
Block a user