mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Repeated err judgment in ns_conditions_test.go
Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
parent
35bc0fbad5
commit
4c198dc9eb
@ -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)
|
||||
}
|
||||
|
@ -131,9 +131,6 @@ func rmSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, *replicaset.R
|
||||
replicaset.BurstReplicas,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to create replicaset controller")
|
||||
}
|
||||
return s, closeFn, rm, informers, clientSet
|
||||
}
|
||||
|
||||
|
@ -125,9 +125,6 @@ func rmSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, *replication.
|
||||
replication.BurstReplicas,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to create replication controller")
|
||||
}
|
||||
return s, closeFn, rm, informers, clientSet
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user