You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cd...@apache.org on 2024/04/09 21:23:23 UTC
(camel-k) branch release-2.3.x updated: fix(#5326): Fix flaky E2E test
This is an automated email from the ASF dual-hosted git repository.
cdeppisch pushed a commit to branch release-2.3.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.3.x by this push:
new 652f16626 fix(#5326): Fix flaky E2E test
652f16626 is described below
commit 652f16626c6a51c29e035bbbe530c32ecdcf8374
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Tue Apr 9 11:15:45 2024 +0200
fix(#5326): Fix flaky E2E test
- Make sure to wait some time for registry address to be set on IntegrationPlatform status
(cherry picked from commit f6d38bfc927fadefd556861679b9b5b9cc10f9de)
---
e2e/install/kustomize/operator_test.go | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/e2e/install/kustomize/operator_test.go b/e2e/install/kustomize/operator_test.go
index 20997cf74..c8d686241 100644
--- a/e2e/install/kustomize/operator_test.go
+++ b/e2e/install/kustomize/operator_test.go
@@ -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"
@@ -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())
}
})