Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongxuanzhang committed Oct 31, 2022
1 parent 09f6b69 commit c2664cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/trusted_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ spec:
if tr.Status.Conditions[0].Reason != pod.ReasonResourceVerificationFailed {
t.Errorf("Expected TaskRun fail condition is: %s but got: %s", pod.ReasonResourceVerificationFailed, tr.Status.Conditions[0].Reason)
}
} else {
if tr.Status.GetCondition(apis.ConditionSucceeded).IsFalse() {
t.Errorf("Expected TaskRun to succeed but instead found condition: %s", tr.Status.GetCondition(apis.ConditionSucceeded))
}
return
}
if tr.Status.GetCondition(apis.ConditionSucceeded).IsFalse() {
t.Errorf("Expected TaskRun to succeed but instead found condition: %s", tr.Status.GetCondition(apis.ConditionSucceeded))
}
})
}
Expand Down Expand Up @@ -351,10 +351,10 @@ spec:
if pr.Status.Conditions[0].Reason != pod.ReasonResourceVerificationFailed {
t.Errorf("Expected PipelineRun fail condition is: %s but got: %s", pod.ReasonResourceVerificationFailed, pr.Status.Conditions[0].Reason)
}
} else {
if pr.Status.GetCondition(apis.ConditionSucceeded).IsFalse() {
t.Errorf("Expected PipelineRun to succeed but instead found condition: %s", pr.Status.GetCondition(apis.ConditionSucceeded))
}
return
}
if pr.Status.GetCondition(apis.ConditionSucceeded).IsFalse() {
t.Errorf("Expected PipelineRun to succeed but instead found condition: %s", pr.Status.GetCondition(apis.ConditionSucceeded))
}
})
}
Expand Down

0 comments on commit c2664cc

Please sign in to comment.