Skip to content

Replace method 'Should(Succeed())' with 'NotTo(HaveOccurred())'#3898

Merged
joelanford merged 1 commit intooperator-framework:masterfrom
DanielXLee:replace-test-expect
Sep 17, 2020
Merged

Replace method 'Should(Succeed())' with 'NotTo(HaveOccurred())'#3898
joelanford merged 1 commit intooperator-framework:masterfrom
DanielXLee:replace-test-expect

Conversation

@DanielXLee
Copy link
Copy Markdown
Contributor

Description of the change:
Replace expect method Expect(err).Should(Succeed()) with Expect(err).NotTo(HaveOccurred())

Motivation for the change:
For better readability

Fixes: #3896

Checklist

If the pull request includes user-facing changes, extra documentation is required:

Copy link
Copy Markdown
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2020
@joelanford joelanford merged commit 004d492 into operator-framework:master Sep 17, 2020
@DanielXLee DanielXLee deleted the replace-test-expect branch September 17, 2020 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Expect(err).NotTo(HaveOccurred()) instead of Expect(err).Should(Succeed())

3 participants