-
Notifications
You must be signed in to change notification settings - Fork 940
add unit test #1693
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
add unit test #1693
Conversation
assert.Equal(tn.t, "2233", e.Service.Port) | ||
tn.wg.Done() | ||
} | ||
func (tn *testNotify) NotifyAll([]*registry.ServiceEvent, func()) { |
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.
这个函数上面留一个空行。函数之间不要连在一起。
单元测试未通过。本地跑一下,不要依赖真实的注册组件。 @A-Wanderer |
Codecov Report
@@ Coverage Diff @@
## 3.0 #1693 +/- ##
==========================================
+ Coverage 41.31% 42.64% +1.32%
==========================================
Files 255 255
Lines 14705 14719 +14
==========================================
+ Hits 6076 6277 +201
+ Misses 7930 7725 -205
- Partials 699 717 +18
Continue to review full report at Codecov.
|
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.
ping @A-Wanderer
12ea66b
to
f4784c0
Compare
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: