Skip to content

Commit

Permalink
feat(cluster) Timeout in test (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
gciezkowski-acc committed Oct 16, 2024
1 parent 8644be0 commit c96a493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/cluster/direct_access_controller_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 @@ -80,7 +81,7 @@ var _ = Describe("KubeConfig controller", func() {
Eventually(func() error {
var namespace = new(corev1.Namespace)
return remoteClient.Get(test.Ctx, types.NamespacedName{Namespace: "", Name: setup.Namespace()}, namespace)
}).Should(Succeed(), fmt.Sprintf("eventually the namespace %s should exist", setup.Namespace()))
}, 3*time.Minute).Should(Succeed(), fmt.Sprintf("eventually the namespace %s should exist", setup.Namespace()))

By("Checking service account has been created in remote cluster")
Eventually(func() error {
Expand Down

0 comments on commit c96a493

Please sign in to comment.