mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
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:
parent
d952437921
commit
d96f83f02f
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user