Skip to content

Commit

Permalink
Fixing Job tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Jun 28, 2024
1 parent 51824b6 commit c6f8664
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/e2e/local/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,12 @@ func TestJobWithMultipleSuccessfulReplicas(t *testing.T) {
pods := deployJob(t, ns, name, int32(replicas), 0)
g.Expect(len(pods)).To(Equal(replicas))

var condition helper.DeploymentStateCondition

for i := 0; i < replicas; i++ {
condition := helper.JobSucceededCondition(int32(i + 1))
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
g.Expect(err).NotTo(HaveOccurred())
}
condition := helper.JobSucceededCondition(3)
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
g.Expect(err).NotTo(HaveOccurred())

condition = helper.StatusPhaseCondition(coh.ConditionTypeCompleted)
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
_, err = helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
g.Expect(err).NotTo(HaveOccurred())
}

Expand Down

0 comments on commit c6f8664

Please sign in to comment.