From 9693aca1f3991952decba04c9c17dd3879fda796 Mon Sep 17 00:00:00 2001 From: Xun Jiang Date: Mon, 26 Sep 2022 17:05:59 +0800 Subject: [PATCH] Fix Test_prepareBackupRequest_BackupStorageLocation UT failure. Signed-off-by: Xun Jiang --- changelogs/unreleased/5394-blackpiglet | 1 + pkg/controller/backup_controller_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/5394-blackpiglet diff --git a/changelogs/unreleased/5394-blackpiglet b/changelogs/unreleased/5394-blackpiglet new file mode 100644 index 0000000000..20d2cbcede --- /dev/null +++ b/changelogs/unreleased/5394-blackpiglet @@ -0,0 +1 @@ +Fix Test_prepareBackupRequest_BackupStorageLocation UT failure. \ No newline at end of file diff --git a/pkg/controller/backup_controller_test.go b/pkg/controller/backup_controller_test.go index fc6370f327..4617975681 100644 --- a/pkg/controller/backup_controller_test.go +++ b/pkg/controller/backup_controller_test.go @@ -382,7 +382,7 @@ func Test_prepareBackupRequest_BackupStorageLocation(t *testing.T) { test.backup.Spec.StorageLocation = test.backupLocationNameInBackup // Run - res := c.prepareBackupRequest(test.backup) + res := c.prepareBackupRequest(test.backup, logger) // Assert if test.expectedSuccess {