From d96f83f02f9dcab5e2fe7b846c490f65398a5045 Mon Sep 17 00:00:00 2001 From: Ionut Balutoiu Date: Wed, 26 Apr 2023 16:38:41 +0300 Subject: [PATCH] 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 --- test/e2e/windows/hybrid_network.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/windows/hybrid_network.go b/test/e2e/windows/hybrid_network.go index 3a65e7a83b9..6db7516c3c1 100644 --- a/test/e2e/windows/hybrid_network.go +++ b/test/e2e/windows/hybrid_network.go @@ -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()) }