Skip to content

Commit

Permalink
fix(e2e): Add timeout to allow 5 attempts at build
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Jun 7, 2024
1 parent 18d85b0 commit 4e06d15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/advanced/maven_http_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func TestMavenProxyNotPresent(t *testing.T) {
t.Parallel()

WithNewTestNamespace(t, func(ctx context.Context, g *WithT, ns string) {
hostname := fmt.Sprintf("%s.%s.svc", "proxy", ns)
hostname := fmt.Sprintf("%s.%s.svc", "proxy-fake", ns)

svc := Service(t, ctx, TestDefaultNamespace, "kubernetes")()
g.Expect(svc).NotTo(BeNil())
Expand Down Expand Up @@ -270,8 +270,8 @@ func TestMavenProxyNotPresent(t *testing.T) {
g.Expect(KamelRunWithID(t, ctx, operatorID, ns, "files/Java.java", "--name", name).Execute()).To(Succeed())

// Should not be able to build
g.Eventually(IntegrationPhase(t, ctx, ns, name)).Should(Equal(v1.IntegrationPhaseError))
g.Eventually(IntegrationConditionStatus(t, ctx, ns, name, v1.IntegrationConditionKitAvailable)).
g.Eventually(IntegrationPhase(t, ctx, ns, name), TestTimeoutMedium).Should(Equal(v1.IntegrationPhaseError))
g.Eventually(IntegrationConditionStatus(t, ctx, ns, name, v1.IntegrationConditionKitAvailable), TestTimeoutShort).
Should(Equal(corev1.ConditionFalse))

// Clean up
Expand Down

0 comments on commit 4e06d15

Please sign in to comment.