Skip to content

Commit

Permalink
PMM-8019 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Dec 26, 2023
1 parent 5192034 commit ff8cc4f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions managed/services/management/backup/backups_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ func TestScheduledBackups(t *testing.T) {
task, err = models.FindScheduledTaskByID(db.Querier, res.ScheduledBackupId)
require.NoError(t, err)
data = task.Data.MySQLBackupTask
assert.Equal(t, changeReq.CronExpression, task.CronExpression)
assert.Equal(t, changeReq.Enabled, !task.Disabled)
assert.Equal(t, changeReq.Name, data.Name)
assert.Equal(t, changeReq.Description, data.Description)
assert.Equal(t, changeReq.Retries, data.Retries)
assert.Equal(t, *changeReq.CronExpression, task.CronExpression)
assert.Equal(t, *changeReq.Enabled, !task.Disabled)
assert.Equal(t, *changeReq.Name, data.Name)
assert.Equal(t, *changeReq.Description, data.Description)
assert.Equal(t, *changeReq.Retries, data.Retries)
assert.Equal(t, changeReq.RetryInterval.AsDuration(), data.RetryInterval)
})

Expand Down

0 comments on commit ff8cc4f

Please sign in to comment.