Skip to content

Commit

Permalink
fix(#5326): Fix flaky E2E test
Browse files Browse the repository at this point in the history
- Make sure to wait some time for registry address to be set on IntegrationPlatform status

(cherry picked from commit f6d38bf)
  • Loading branch information
christophd committed Apr 9, 2024
1 parent 9f28ac4 commit 652f166
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/install/kustomize/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (

. "github.com/apache/camel-k/v2/e2e/support"
testutil "github.com/apache/camel-k/v2/e2e/support/util"
v1 "github.com/apache/camel-k/v2/pkg/apis/camel/v1"
"github.com/apache/camel-k/v2/pkg/util/kubernetes"

. "github.com/onsi/gomega"
Expand Down Expand Up @@ -75,9 +76,9 @@ func TestOperatorBasic(t *testing.T) {
g.Eventually(Platform(t, ctx, ns)).ShouldNot(BeNil())
registry := os.Getenv("KIND_REGISTRY")
if registry != "" {
platform := Platform(t, ctx, ns)()
g.Expect(platform.Status.Build.Registry).ShouldNot(BeNil())
g.Expect(platform.Status.Build.Registry.Address).To(Equal(registry))
g.Eventually(PlatformHas(t, ctx, ns, func(pl *v1.IntegrationPlatform) bool {
return pl.Status.Build.Registry.Address == registry
}), TestTimeoutShort).Should(BeTrue())
}

})
Expand Down

0 comments on commit 652f166

Please sign in to comment.