Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankedia committed Feb 17, 2021
1 parent 4e59b9c commit 4b5fad8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void whenJobConditionStatusFalse_reportNotComplete() {

@Test
public void whenJobConditionTypeFailedWithTrueStatus_reportFailed() {
cachedJob.status(new V1JobStatus().addConditionsItem(new V1JobCondition().type("Failed").status("True")));
markJobConditionFailed(cachedJob);

assertThat(JobWatcher.isFailed(cachedJob), is(true));
}
Expand Down Expand Up @@ -203,7 +203,7 @@ public void whenJobHasNoStatus_reportNotFailed() {

@Test
public void whenJobHasNoStatusAndFailedCondition_reportFailed() {
markJobFailed(cachedJob);
markJobConditionFailed(cachedJob);
assertThat(JobWatcher.isFailed(cachedJob), is(true));
}

Expand Down

0 comments on commit 4b5fad8

Please sign in to comment.