Skip to content

Commit c6f8664

Browse files
committed
Fixing Job tests
1 parent 51824b6 commit c6f8664

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/e2e/local/job_test.go

+4-8
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,12 @@ func TestJobWithMultipleSuccessfulReplicas(t *testing.T) {
6161
pods := deployJob(t, ns, name, int32(replicas), 0)
6262
g.Expect(len(pods)).To(Equal(replicas))
6363

64-
var condition helper.DeploymentStateCondition
65-
66-
for i := 0; i < replicas; i++ {
67-
condition := helper.JobSucceededCondition(int32(i + 1))
68-
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
69-
g.Expect(err).NotTo(HaveOccurred())
70-
}
64+
condition := helper.JobSucceededCondition(3)
65+
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
66+
g.Expect(err).NotTo(HaveOccurred())
7167

7268
condition = helper.StatusPhaseCondition(coh.ConditionTypeCompleted)
73-
_, err := helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
69+
_, err = helper.WaitForCoherenceJobCondition(testContext, ns, name, condition, time.Second*10, time.Minute*5)
7470
g.Expect(err).NotTo(HaveOccurred())
7571
}
7672

0 commit comments

Comments
 (0)