Simplify Create/Delete-TestingNamespace functions
This commit is contained in:
@@ -156,8 +156,8 @@ func TestDualStackEndpoints(t *testing.T) {
|
||||
|
||||
for i, tc := range testcases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
ns := framework.CreateTestingNamespace(fmt.Sprintf("test-endpointslice-dualstack-%d", i), s, t)
|
||||
defer framework.DeleteTestingNamespace(ns, s, t)
|
||||
ns := framework.CreateTestingNamespace(fmt.Sprintf("test-endpointslice-dualstack-%d", i), t)
|
||||
defer framework.DeleteTestingNamespace(ns, t)
|
||||
|
||||
// Create a pod with labels
|
||||
pod := &v1.Pod{
|
||||
|
@@ -1597,8 +1597,8 @@ func Test_ServiceChangeTypeHeadlessToExternalNameWithPatch(t *testing.T) {
|
||||
t.Fatalf("Error creating clientset: %v", err)
|
||||
}
|
||||
|
||||
ns := framework.CreateTestingNamespace("test-service-allocate-node-ports", server, t)
|
||||
defer framework.DeleteTestingNamespace(ns, server, t)
|
||||
ns := framework.CreateTestingNamespace("test-service-allocate-node-ports", t)
|
||||
defer framework.DeleteTestingNamespace(ns, t)
|
||||
|
||||
service := &v1.Service{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
|
Reference in New Issue
Block a user