Repeated err judgment in ns_conditions_test.go

Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
chymy
2021-02-04 18:50:03 +08:00
parent 35bc0fbad5
commit 4c198dc9eb
3 changed files with 1 additions and 9 deletions

View File

@@ -158,8 +158,6 @@ func namespaceLifecycleSetup(t *testing.T) (framework.CloseFunc, *namespace.Name
informers.Core().V1().Namespaces(),
10*time.Hour,
corev1.FinalizerKubernetes)
if err != nil {
t.Fatalf("error creating Deployment controller: %v", err)
}
return closeFn, controller, informers, clientSet, dynamic.NewForConfigOrDie(&config)
}