-
Notifications
You must be signed in to change notification settings - Fork 827
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
test(gRPC): remove redundant unit tests #1631
base: develop
Are you sure you want to change the base?
test(gRPC): remove redundant unit tests #1631
Conversation
a1c3ebb
to
7540c58
Compare
}, | ||
} | ||
server, client := setUpWithOptions(t, 0, serverConfig, suspended, ConnectOptions{ | ||
// FIXME the original ut don't contain KeepaliveParams |
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.
应该是理解错了这个单元测试的用意,整个流程是由 server 来主动发送 Ping,client 不需要主动发,所以不需要配置 KeepAlive 参数
|
||
// grpcLogger is used to add test case information to assist in troubleshooting problems. | ||
// it relies on testNameKey:testcase kv in ctx. | ||
type grpcLogger struct { |
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.
正常情况下,如果单测没问题的话,go test ./... 是会跳过输出的,看不懂这个的用意是什么。我看相关的单测也不是并发的,有什么问题?
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.
80ab0ff
to
2c729a1
Compare
37da49f
to
aba6a07
Compare
What type of PR is this?
test
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: