Skip to content
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

balancer/pickfirst: replace grpc.Dial with grpc.NewClient in tests #7879

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

hanut19
Copy link
Contributor

@hanut19 hanut19 commented Nov 28, 2024

replace grpc.Dial with grpc.NewClient in test files

Addresses: #7049

RELEASE NOTES: None

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.90%. Comparing base (634497b) to head (bef686e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7879      +/-   ##
==========================================
- Coverage   82.04%   81.90%   -0.15%     
==========================================
  Files         377      377              
  Lines       38117    38117              
==========================================
- Hits        31272    31218      -54     
- Misses       5548     5590      +42     
- Partials     1297     1309      +12     

see 24 files with indirect coverage changes

Copy link
Contributor

@arjan-bal arjan-bal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one comment about the error log.

if err != nil {
t.Fatalf("Failed to dial server at %q: %v", lis.Addr(), err)
t.Fatalf("Failed to create new client server at %q: %v", lis.Addr(), err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the grammar. We can also remove the server address because NewClient doesn't create a transport immediately, so it unlikely that the server had anything to do with the failure.

t.Fatalf("Failed to create new client: %v", err)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done please check

@arjan-bal arjan-bal added the Type: Internal Cleanup Refactors, etc label Dec 3, 2024
@arjan-bal arjan-bal changed the title cleanup: replace grpc.Dial with grpc.NewClient in tests pickfirst: replace grpc.Dial with grpc.NewClient in tests Dec 3, 2024
@arjan-bal arjan-bal added this to the 1.69 Release milestone Dec 3, 2024
@hanut19 hanut19 force-pushed the replacing-dial-with-newclient branch from 7b949f9 to bef686e Compare December 3, 2024 07:32
@purnesh42H purnesh42H changed the title pickfirst: replace grpc.Dial with grpc.NewClient in tests balancer/pickfirst: replace grpc.Dial with grpc.NewClient in tests Dec 3, 2024
@arjan-bal arjan-bal merged commit 5565631 into grpc:master Dec 4, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants