windows-tests: Update connectivity check util function

Sometimes, the kube-proxy endpoints take longer than 10 seconds to
be ready, so the initial connection check fails (via `gomega.Eventually`).

This patch uses a separate longer timeout for `gomega.Eventually`.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This commit is contained in:
Ionut Balutoiu 2023-04-26 16:38:41 +03:00
parent d952437921
commit d96f83f02f

View File

@ -102,6 +102,7 @@ var _ = SIGDescribe("Hybrid cluster network", func() {
})
var (
warmUpDuration = "30s"
duration = "10s"
pollInterval = "1s"
timeoutSeconds = 10
@ -117,7 +118,7 @@ func assertConsistentConnectivity(ctx context.Context, f *framework.Framework, p
}
return err
}
gomega.Eventually(ctx, connChecker, duration, pollInterval).ShouldNot(gomega.HaveOccurred())
gomega.Eventually(ctx, connChecker, warmUpDuration, pollInterval).ShouldNot(gomega.HaveOccurred())
gomega.Consistently(ctx, connChecker, duration, pollInterval).ShouldNot(gomega.HaveOccurred())
}