File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
operator/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public void whenJobConditionStatusFalse_reportNotComplete() {
132
132
133
133
@ Test
134
134
public void whenJobConditionTypeFailedWithTrueStatus_reportFailed () {
135
- cachedJob . status ( new V1JobStatus (). addConditionsItem ( new V1JobCondition (). type ( "Failed" ). status ( "True" )) );
135
+ markJobConditionFailed ( cachedJob );
136
136
137
137
assertThat (JobWatcher .isFailed (cachedJob ), is (true ));
138
138
}
@@ -203,7 +203,7 @@ public void whenJobHasNoStatus_reportNotFailed() {
203
203
204
204
@ Test
205
205
public void whenJobHasNoStatusAndFailedCondition_reportFailed () {
206
- markJobFailed (cachedJob );
206
+ markJobConditionFailed (cachedJob );
207
207
assertThat (JobWatcher .isFailed (cachedJob ), is (true ));
208
208
}
209
209
You can’t perform that action at this time.
0 commit comments