-
Notifications
You must be signed in to change notification settings - Fork 115
Replace unit test assertions with Gomega matchers #1046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There are a couple of situations where |
You can change those instances to a gomega assertion. The test will fail and stop executing on the first failed gomega assertion. |
89c43a9
to
c3905f6
Compare
Problem: There were still some existing unit tests that weren't using the Gomega matcher library for assertions. Solution: Changed existing tests to use the Gomega matcher library, replaced deprecated NewGomegaWithT with NewWithT, and added sub-tests to existing tests.
Proposed changes
Problem: There were still some existing unit tests that weren't using the Gomega matcher library for assertions.
Solution: Changed existing tests to use the Gomega matcher library. In addition, I replaced the deprecated NewGomegaWithT with NewWithT.
Testing: Unit tests still pass
Closes #823
Checklist
Before creating a PR, run through this checklist and mark each as complete.