Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RemindD committed Nov 28, 2024
1 parent 9689dee commit 389dec9
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ func verifyPodsExist(t *testing.T, test TestCase, toFind []string) {
kubeClient, err := testhelpers.KubeClient()
require.NoError(t, err)

i := 0
for {
i++
for i := 0; ; i++ {
// List all pods in the namespace
pods, err := kubeClient.CoreV1().Pods("test-scope").List(context.Background(), metav1.ListOptions{})
require.NoError(t, err)
Expand Down Expand Up @@ -300,9 +298,7 @@ func verifyPodsDeleted(t *testing.T, test TestCase, toFind []string) {
kubeClient, err := testhelpers.KubeClient()
require.NoError(t, err)

i := 0
for {
i++
for i := 0; ; i++ {
// List all pods in the namespace
pods, err := kubeClient.CoreV1().Pods("test-scope").List(context.Background(), metav1.ListOptions{})
require.NoError(t, err)
Expand Down

0 comments on commit 389dec9

Please sign in to comment.