Skip to content

Commit

Permalink
Merge pull request #89 from cgoncalves/release-4.9-e2e-ready-replicas
Browse files Browse the repository at this point in the history
Bug 2104669: Check that deployment ready replicas greater than zero
  • Loading branch information
openshift-ci[bot] committed Jul 7, 2022
2 parents 34e4f22 + 0c88d8d commit 00b30ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ var _ = Describe("validation", func() {
if err != nil {
return false
}
return deploy.Status.ReadyReplicas == deploy.Status.Replicas
return deploy.Status.ReadyReplicas > 0 && deploy.Status.ReadyReplicas == deploy.Status.Replicas
}, timeout, interval).Should(BeTrue())

pods, err := testclient.Client.Pods(OperatorNameSpace).List(context.Background(), metav1.ListOptions{
Expand Down

0 comments on commit 00b30ff

Please sign in to comment.