File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pkg/controller.v1beta1/trial Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -208,13 +208,20 @@ func TestReconcileBatchJob(t *testing.T) {
208
208
g .Expect (c .Get (ctx , batchJobKey , batchJob )).Should (gomega .Succeed ())
209
209
batchJob .Status = batchv1.JobStatus {
210
210
Conditions : []batchv1.JobCondition {
211
+ {
212
+ Type : batchv1 .JobFailureTarget ,
213
+ Status : corev1 .ConditionTrue ,
214
+ Message : "BatchJob failed test message" ,
215
+ Reason : "BatchJob failed test reason" ,
216
+ },
211
217
{
212
218
Type : batchv1 .JobFailed ,
213
219
Status : corev1 .ConditionTrue ,
214
220
Message : "BatchJob failed test message" ,
215
221
Reason : "BatchJob failed test reason" ,
216
222
},
217
223
},
224
+ StartTime : & metav1.Time {Time : time .Now ()},
218
225
}
219
226
g .Expect (c .Status ().Update (ctx , batchJob )).Should (gomega .Succeed ())
220
227
g .Expect (c .Get (ctx , trialKey , trial )).Should (gomega .Succeed ())
You can’t perform that action at this time.
0 commit comments