-
Notifications
You must be signed in to change notification settings - Fork 534
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
chore: use gomega match assertion #1678
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1678 +/- ##
==========================================
+ Coverage 72.41% 74.04% +1.62%
==========================================
Files 133 86 -47
Lines 5728 2612 -3116
Branches 666 666
==========================================
- Hits 4148 1934 -2214
+ Misses 1337 678 -659
+ Partials 243 0 -243
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
b2f2c79
to
42d64c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
gomega.Expect(res["1980"] == 3).Should(gomega.BeTrue()) | ||
gomega.Expect(res["1981"] == 6).Should(gomega.BeTrue()) | ||
gomega.Expect(res["1982"] == 9).Should(gomega.BeTrue()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion, we could also use
gomega.Expect(res["1980"]).Should(gomega.Equal(3))
here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice suggestions, Thks, fixed.
api/test/e2enew/upstream/upstream_chash_query_string_arg_xxx_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
e2e test use gomega match assertion.
Related issues
fix/resolve #1664
Checklist: