Skip to content

Commit

Permalink
Merge pull request kubernetes#105441 from claudiubelu/automated-cherr…
Browse files Browse the repository at this point in the history
…y-pick-of-#103371-upstream-release-1.21

Automated cherry pick of kubernetes#103371: tests: Wait for the network connectivity first
  • Loading branch information
k8s-ci-robot authored Oct 14, 2021
2 parents 5533776 + 863ca51 commit 8b67444
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/windows/hybrid_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ var (
)

func assertConsistentConnectivity(f *framework.Framework, podName string, os string, cmd []string) {
gomega.Consistently(func() error {
connChecker := func() error {
ginkgo.By(fmt.Sprintf("checking connectivity of %s-container in %s", os, podName))
// TODO, we should be retrying this similar to what is done in DialFromNode, in the test/e2e/networking/networking.go tests
_, _, err := f.ExecCommandInContainerWithFullOutput(podName, os+"-container", cmd...)
return err
}, duration, pollInterval).ShouldNot(gomega.HaveOccurred())
}
gomega.Eventually(connChecker, duration, pollInterval).ShouldNot(gomega.HaveOccurred())
gomega.Consistently(connChecker, duration, pollInterval).ShouldNot(gomega.HaveOccurred())
}

func linuxCheck(address string, port int) []string {
Expand Down

0 comments on commit 8b67444

Please sign in to comment.