br: use random port to avoid flaky test#65186
Conversation
| } | ||
|
|
||
| addr := ":0" | ||
| lis, err = net.Listen("tcp", addr) |
There was a problem hiding this comment.
we have used a library freeport.GetFreePort()
There was a problem hiding this comment.
That's also an option, but if it can be accomplished using only the official libraries, it's better not to introduce third-party libraries.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #65186 +/- ##
================================================
+ Coverage 70.7525% 71.1906% +0.4380%
================================================
Files 1895 1901 +6
Lines 518128 518474 +346
================================================
+ Hits 366589 369105 +2516
+ Misses 127031 124966 -2065
+ Partials 24508 24403 -105
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
|
||
| addr := ":0" | ||
| lis, err = net.Listen("tcp", addr) | ||
| t.Log(err) |
There was a problem hiding this comment.
should use require.NoError?
lance6716
left a comment
There was a problem hiding this comment.
/hold
free to unhold after addressing comments
| } | ||
| addr := ":0" | ||
| lis, err = net.Listen("tcp", addr) | ||
| t.Log(err) |
|
/cc @BornChanger |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, Leavrth, xhebox The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: ref #65185
Problem Summary:
What changed and how does it work?
use random port to avoid flaky test
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.