From b8a52fd36ed4ed132e052466607ed359e26d7032 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Wed, 27 Dec 2023 13:15:09 +0200 Subject: [PATCH] Set validation interval only when higher than 10s --- tests/e2e/kubetest2-kops/deployer/up.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/kubetest2-kops/deployer/up.go b/tests/e2e/kubetest2-kops/deployer/up.go index 843705ba7b..d16d9057a6 100644 --- a/tests/e2e/kubetest2-kops/deployer/up.go +++ b/tests/e2e/kubetest2-kops/deployer/up.go @@ -292,9 +292,11 @@ func (d *deployer) IsUp() (bool, error) { d.KopsBinaryPath, "validate", "cluster", "--name", d.ClusterName, "--count", strconv.Itoa(d.ValidationCount), - "--interval", d.ValidationInterval.String(), "--wait", wait.String(), } + if d.ValidationInterval > 10*time.Second { + args = append(args, "--interval", d.ValidationInterval.String()) + } klog.Info(strings.Join(args, " ")) cmd := exec.Command(args[0], args[1:]...)