From ad6104b90a354fbd0ce2a7a95852621aba78165b Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Wed, 31 Jul 2024 22:16:11 -0400 Subject: [PATCH] unused write to field Spec Signed-off-by: Tiger Kaovilai --- pkg/controller/restore_controller_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/controller/restore_controller_test.go b/pkg/controller/restore_controller_test.go index fe86d4c09..09fd12d10 100644 --- a/pkg/controller/restore_controller_test.go +++ b/pkg/controller/restore_controller_test.go @@ -613,12 +613,6 @@ func TestRestoreReconcile(t *testing.T) { }, } - if test.restore.Spec.ScheduleName != "" && test.backup != nil { - expected.Spec = SpecPatch{ - BackupName: test.backup.Name, - } - } - if test.expectedStartTime != nil { expected.Status.StartTimestamp = test.expectedStartTime }