Skip to content

Commit 0bb0e8f

Browse files
committed
Fix TestEnableDisableServiceCIDR
The wrong clientset was used to create services and an incorrect amount of services was created. Signed-off-by: Lionel Jouin <[email protected]>
1 parent 8dafdb2 commit 0bb0e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/servicecidr/feature_enable_disable_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestEnableDisableServiceCIDR(t *testing.T) {
9494
}
9595

9696
// make 2 services , there will be 5 services now
97-
for i := 2; i < 5; i++ {
97+
for i := 2; i < 4; i++ {
9898
if _, err := client2.CoreV1().Services(ns.Name).Create(context.TODO(), svc(i), metav1.CreateOptions{}); err != nil {
9999
t.Fatal(err)
100100
}
@@ -125,8 +125,8 @@ func TestEnableDisableServiceCIDR(t *testing.T) {
125125
t.Fatalf("Unexpected error: %v", err)
126126
}
127127
// make 2 services , there will be 7 services now
128-
for i := 5; i < 7; i++ {
129-
if _, err := client2.CoreV1().Services(ns.Name).Create(context.TODO(), svc(i), metav1.CreateOptions{}); err != nil {
128+
for i := 4; i < 6; i++ {
129+
if _, err := client3.CoreV1().Services(ns.Name).Create(context.TODO(), svc(i), metav1.CreateOptions{}); err != nil {
130130
t.Fatal(err)
131131
}
132132
}

0 commit comments

Comments
 (0)