Skip to content

Commit

Permalink
(chore): adds higher timeout for status test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijith-darshan committed Nov 4, 2024
1 parent 6836f35 commit c29a4ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion pkg/controllers/cluster/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package cluster_test

import (
"fmt"
"time"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit c29a4ea

Please sign in to comment.