-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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: switching to stubserver in tests instead of testservice #7925
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7925 +/- ##
==========================================
+ Coverage 82.04% 82.20% +0.15%
==========================================
Files 377 379 +2
Lines 38180 38261 +81
==========================================
+ Hits 31326 31453 +127
+ Misses 5551 5517 -34
+ Partials 1303 1291 -12 |
29ddfe9
to
05fb347
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.
lgtm
@easwars for second review |
test/balancer_test.go
Outdated
stub := &stubserver.StubServer{ | ||
Listener: lis, | ||
EmptyCallF: func(_ context.Context, _ *testpb.Empty) (*testpb.Empty, error) { | ||
return &testpb.Empty{}, nil | ||
}, | ||
} | ||
|
||
stub.S = grpc.NewServer() |
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.
How about moving the initialization of the S
field inside the literal struct defintion?
stub := &stubserver.StubServer{
Listener: lis,
EmptyCallF: func(_ context.Context, _ *testpb.Empty) (*testpb.Empty, error) {
return &testpb.Empty{}, nil
},
S: grpc.NewServer(),
}
Here and in the other three places in this PR.
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.
Done
…grpc#7925)" This reverts commit 5541486.
Partially Addresses: #7291
RELEASE NOTES: None