@@ -61,16 +61,12 @@ func TestJobWithMultipleSuccessfulReplicas(t *testing.T) {
61
61
pods := deployJob (t , ns , name , int32 (replicas ), 0 )
62
62
g .Expect (len (pods )).To (Equal (replicas ))
63
63
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 ())
71
67
72
68
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 )
74
70
g .Expect (err ).NotTo (HaveOccurred ())
75
71
}
76
72
0 commit comments