This is an automated email from the ASF dual-hosted git repository.

squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 7fdd56700 chore(e2e): antiaffinity test polish
7fdd56700 is described below

commit 7fdd5670082da86cfaf5b1caee7f2ca65cb900f7
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Fri Aug 14 10:51:04 2026 +0200

    chore(e2e): antiaffinity test polish
---
 e2e/common/traits/affinity_test.go | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/e2e/common/traits/affinity_test.go 
b/e2e/common/traits/affinity_test.go
index 9e9aec3f0..0f3ea218c 100644
--- a/e2e/common/traits/affinity_test.go
+++ b/e2e/common/traits/affinity_test.go
@@ -96,13 +96,16 @@ func TestAffinityTrait(t *testing.T) {
                        g.Expect(KamelRun(t, ctx, ns, "files/Java.java", 
"--name", name3,
                                "-t", "affinity.enabled=true",
                                "-t", 
"affinity.pod-anti-affinity-labels=camel.apache.org/integration").Execute()).To(Succeed())
-                       g.Eventually(IntegrationPodPhase(t, ctx, ns, 
name3)).Should(Equal(corev1.PodPending))
                        g.Eventually(
-                               IntegrationConditionStatus(t, ctx, ns, name3, 
v1.IntegrationConditionReady), TestTimeoutShort).Should(
+                               IntegrationConditionStatus(t, ctx, ns, name3, 
v1.IntegrationConditionReady), TestTimeoutMedium).Should(
                                Equal(corev1.ConditionFalse),
                        )
-                       g.Eventually(IntegrationCondition(t, ctx, ns, name3, 
v1.IntegrationConditionReady)().Message, TestTimeoutMedium).
-                               Should(ContainSubstring("didn't match pod 
anti-affinity rules"))
+                       g.Eventually(func() string {
+                               return IntegrationCondition(t, ctx, ns, name3, 
v1.IntegrationConditionReady)().Message
+                       }, TestTimeoutMedium).Should(
+                               ContainSubstring("didn't match pod 
anti-affinity rules"),
+                       )
+                       g.Eventually(IntegrationPodPhase(t, ctx, ns, 
name3)).Should(Equal(corev1.PodPending))
 
                        pod := IntegrationPod(t, ctx, ns, name3)()
                        g.Expect(pod.Spec.Affinity).NotTo(BeNil())

Reply via email to