Skip to content

Commit

Permalink
Use for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Sep 3, 2023
1 parent 87d5bf2 commit 66ecfa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/conformance/api/v1/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,9 @@ func TestServiceCreateWithMultipleContainers(t *testing.T) {

// Please see the comment in test/v1/configuration.go.
if !test.ServingFlags.DisableOptionalAPI {
containers[0].ImagePullPolicy = corev1.PullIfNotPresent
containers[1].ImagePullPolicy = corev1.PullIfNotPresent
for _, c := range containers {
c.ImagePullPolicy = corev1.PullIfNotPresent
}
}

// Setup initial Service
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/multicontainer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ func TestMultiContainer(t *testing.T) {

// Please see the comment in test/v1/configuration.go.
if !test.ServingFlags.DisableOptionalAPI {
containers[0].ImagePullPolicy = corev1.PullIfNotPresent
containers[1].ImagePullPolicy = corev1.PullIfNotPresent
for _, c := range containers {
c.ImagePullPolicy = corev1.PullIfNotPresent
}
}

test.EnsureTearDown(t, clients, &names)
Expand Down

0 comments on commit 66ecfa4

Please sign in to comment.