From c29a4eafa4c5686c92b3df94b684b56668a67feb Mon Sep 17 00:00:00 2001 From: Abhijith Ravindra Date: Mon, 4 Nov 2024 19:35:13 +0100 Subject: [PATCH] (chore): adds higher timeout for status test --- Makefile | 3 +-- pkg/controllers/cluster/status_test.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 596222ade..1574b58e5 100644 --- a/Makefile +++ b/Makefile @@ -100,8 +100,7 @@ generate-documentation: check-gen-crd-api-reference-docs .PHONY: test test: generate-manifests generate envtest ## Run tests. - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" \ - GOMEGA_DEFAULT_EVENTUALLY_TIMEOUT="2m" go test ./... -coverprofile cover.out -v + KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out -v .PHONY: e2e e2e: diff --git a/pkg/controllers/cluster/status_test.go b/pkg/controllers/cluster/status_test.go index 75ee7aebd..9cd9bfc70 100644 --- a/pkg/controllers/cluster/status_test.go +++ b/pkg/controllers/cluster/status_test.go @@ -5,6 +5,7 @@ package cluster_test import ( "fmt" + "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -149,7 +150,7 @@ var _ = Describe("Cluster status", Ordered, func() { g.Expect(validCluster.Status.Nodes["test-node"].Conditions).ToNot(BeEmpty()) g.Expect(validCluster.Status.Nodes["test-node"].Ready).To(BeFalse()) return true - }).Should(BeTrue()) + }, 2*time.Minute).Should(BeTrue()) By("updating the node ready condition") node := &corev1.Node{}