Tests: Fix dashboard mock (#98647)

This commit is contained in:
Stephanie Hingtgen
2025-01-08 00:20:35 +02:00
committed by GitHub
parent 25538bcfdf
commit 69adb3d25b
4 changed files with 4 additions and 4 deletions
@@ -401,7 +401,7 @@ func Test_DeletedDashboardsNotMigrated(t *testing.T) {
// modify what the mock returns for just this test case
dashMock := s.dashboardService.(*dashboards.FakeDashboardService)
dashMock.On("GetAllDashboardsByOrgId", mock.Anything).Return(
dashMock.On("GetAllDashboardsByOrgId", mock.Anything, int64(1)).Return(
[]*dashboards.Dashboard{
{UID: "1", OrgID: 1, Data: simplejson.New()},
{UID: "2", OrgID: 1, Data: simplejson.New(), Deleted: time.Now()},