-
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
cleanup: replace grpc.Dial with grpc.NewClient in tests #7640
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7640 +/- ##
==========================================
+ Coverage 81.79% 81.81% +0.01%
==========================================
Files 361 361
Lines 27821 27821
==========================================
+ Hits 22757 22761 +4
+ Misses 3863 3858 -5
- Partials 1201 1202 +1 |
if err != nil { | ||
log.Fatalf("Failed to dial: %v", err) |
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.
failed to create new client
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 please check
@@ -847,7 +847,7 @@ func (s) TestEDS_ClusterResourceUpdates(t *testing.T) { | |||
t.Fatalf("Timeout when waiting for old EDS watch %q to be canceled and new one %q to be registered", edsServiceName, clusterName) | |||
} | |||
|
|||
// Make an RPC, and ensure that it gets routed to second backend, |
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.
why change this? an is ok in this case
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.
@hanut19 please revert this
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 please check.
balancer/rls/picker_test.go
Outdated
@@ -57,9 +57,9 @@ func (s) TestNoNonEmptyTargetsReturnsError(t *testing.T) { | |||
r := startManualResolverWithConfig(t, rlsConfig) | |||
|
|||
// Dial the backend. |
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.
Above comment Dial the backend
should change to Create new client.
Applicable everywhere
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 please check
balancer/rls/picker_test.go
Outdated
if err != nil { | ||
t.Fatalf("grpc.Dial() failed: %v", err) | ||
t.Fatalf("grpc.NewClient() failed: %v", err) |
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.
Failed to create gRPC client. Change everywhere else as well
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 please check
@hanut19 please close the other PR |
1fc951b
to
04af399
Compare
04af399
to
2529133
Compare
@dfawley for second review |
Partially address: #7049
Update tests where only direct replacement is enough to replace grpc.Dial with grpc.NewClient in test files
RELEASE NOTES: None