mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 01:39:02 +00:00
Merge pull request #103371 from claudiubelu/tests/windows-flakyness
windows tests: Wait for the network connectivity first
This commit is contained in:
@@ -89,12 +89,14 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func assertConsistentConnectivity(f *framework.Framework, podName string, os string, cmd []string) {
|
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))
|
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
|
// 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...)
|
_, _, err := f.ExecCommandInContainerWithFullOutput(podName, os+"-container", cmd...)
|
||||||
return err
|
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 {
|
func linuxCheck(address string, port int) []string {
|
||||||
|
Reference in New Issue
Block a user