Skip to content

Commit

Permalink
Merge pull request #203 from mesosphere/dkoshkin/fix-delete-pod-test
Browse files Browse the repository at this point in the history
Fix race condition in DynamicallyProvisionedDeletePodTest
  • Loading branch information
k8s-ci-robot authored Feb 11, 2019
2 parents 30f0659 + 9826837 commit 197fb7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/e2e/testsuites/testsuites.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ func (t *TestDeployment) DeletePodAndWait() {
}
return
}
framework.Logf("Waiting for pod %q in namespace %q to be fully deleted", t.podName, t.namespace.Name)
err = framework.WaitForPodNoLongerRunningInNamespace(t.client, t.podName, t.namespace.Name)
if err != nil {
if !apierrs.IsNotFound(err) {
framework.ExpectNoError(fmt.Errorf("pod %q error waiting for delete: %v", t.podName, err))
}
}
}

func (t *TestDeployment) Cleanup() {
Expand Down

0 comments on commit 197fb7f

Please sign in to comment.