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

.*: replace grpc.Dial with grpc.NewClient in test files #7609

Closed

Conversation

hanut19
Copy link
Contributor

@hanut19 hanut19 commented Sep 10, 2024

Partially address: #7049

Update tests where only direct replacement is enough to replace grpc.Dial with grpc.NewClient in test files

RELEASE NOTES: None

Copy link

linux-foundation-easycla bot commented Sep 10, 2024

CLA Missing ID CLA Not Signed

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.70%. Comparing base (31ffeee) to head (505fd73).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7609      +/-   ##
==========================================
- Coverage   81.73%   81.70%   -0.03%     
==========================================
  Files         361      361              
  Lines       27817    27817              
==========================================
- Hits        22735    22729       -6     
- Misses       3871     3877       +6     
  Partials     1211     1211              

see 13 files with indirect coverage changes

@purnesh42H purnesh42H added Area: Client Includes Channel/Subchannel/Streams, Connectivity States, RPC Retries, Dial/Call Options and more. Type: Documentation Documentation or examples Area: Documentation Includes examples and docs. and removed Area: Client Includes Channel/Subchannel/Streams, Connectivity States, RPC Retries, Dial/Call Options and more. labels Sep 12, 2024
@purnesh42H purnesh42H changed the title Replace dial with newclient .*: replace grpc.Dial with grpc.NewClient in test files Sep 12, 2024
@purnesh42H
Copy link
Contributor

@hanut19 please complete your CLA Authorization. Also, please ensure following the convention for PR description and title for next PRs

@purnesh42H purnesh42H assigned hanut19 and unassigned purnesh42H Sep 12, 2024
if err != nil {
t.Fatalf("failed to dial local test server: %v", err)
t.Fatalf("failed to NewClient() local test server: %v", err)
Copy link
Contributor

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 for local test server. Please apply this everywhere

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

@hanut19 hanut19 force-pushed the replace-dial-with-newclient-in-balancer branch from fa6d247 to 2344f90 Compare September 14, 2024 02:37
@purnesh42H purnesh42H assigned purnesh42H and unassigned hanut19 Sep 17, 2024
Copy link
Contributor

@purnesh42H purnesh42H left a comment

Choose a reason for hiding this comment

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

lgtm

@purnesh42H purnesh42H assigned dfawley and unassigned purnesh42H Sep 17, 2024
@purnesh42H
Copy link
Contributor

@dfawley for second review

@dfawley
Copy link
Member

dfawley commented Sep 17, 2024

Note that the CLAs are currently broken, so we can't merge this.

if err != nil {
log.Fatalf("Failed to dial: %v", err)
log.Fatalf("Failed to NewClient: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

"dial" is a verb. "NewClient" is not. Please fix the errors that don't have proper grammar.

Copy link
Contributor

Choose a reason for hiding this comment

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

@hanut19 failed to create new client. Similar to what you changed elsewhere. I think you missed this one

@dfawley dfawley assigned hanut19 and unassigned dfawley Sep 17, 2024
@hanut19
Copy link
Contributor Author

hanut19 commented Sep 20, 2024

another PR is raised #7640

@hanut19 hanut19 closed this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Documentation Includes examples and docs. Type: Documentation Documentation or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants