Review Changes

This commit is contained in:
Sharpz7 2023-08-17 17:23:31 +00:00
parent d08fc3a4d0
commit f87cc43cdb

View File

@ -5172,7 +5172,7 @@ func TestFinalizersRemovedExpectations(t *testing.T) {
} }
} }
func TestBackupFinalizers(t *testing.T) { func TestBackupFinalizerRemoval(t *testing.T) {
_, ctx := ktesting.NewTestContext(t) _, ctx := ktesting.NewTestContext(t)
clientset := fake.NewSimpleClientset() clientset := fake.NewSimpleClientset()
sharedInformers := informers.NewSharedInformerFactory(clientset, controller.NoResyncPeriodFunc()) sharedInformers := informers.NewSharedInformerFactory(clientset, controller.NoResyncPeriodFunc())
@ -5206,7 +5206,7 @@ func TestBackupFinalizers(t *testing.T) {
}) })
// 5. Start the workers. // 5. Start the workers.
go manager.Run(context.TODO(), 1) go manager.Run(context.TODO(), 0)
// Check if the finalizer has been removed from the pod. // Check if the finalizer has been removed from the pod.
if err := wait.Poll(100*time.Millisecond, wait.ForeverTestTimeout, func() (bool, error) { if err := wait.Poll(100*time.Millisecond, wait.ForeverTestTimeout, func() (bool, error) {