mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +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(),
|
informers.Core().V1().Namespaces(),
|
||||||
10*time.Hour,
|
10*time.Hour,
|
||||||
corev1.FinalizerKubernetes)
|
corev1.FinalizerKubernetes)
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("error creating Deployment controller: %v", err)
|
|
||||||
}
|
|
||||||
return closeFn, controller, informers, clientSet, dynamic.NewForConfigOrDie(&config)
|
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,
|
replicaset.BurstReplicas,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Failed to create replicaset controller")
|
|
||||||
}
|
|
||||||
return s, closeFn, rm, informers, clientSet
|
return s, closeFn, rm, informers, clientSet
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,9 +125,6 @@ func rmSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, *replication.
|
|||||||
replication.BurstReplicas,
|
replication.BurstReplicas,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Failed to create replication controller")
|
|
||||||
}
|
|
||||||
return s, closeFn, rm, informers, clientSet
|
return s, closeFn, rm, informers, clientSet
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user