-
Notifications
You must be signed in to change notification settings - Fork 543
Chore: Remove code duplication for port allocation #1245
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
Chore: Remove code duplication for port allocation #1245
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1245 +/- ##
==========================================
- Coverage 34.99% 34.99% -0.01%
==========================================
Files 147 147
Lines 12764 12774 +10
==========================================
+ Hits 4467 4470 +3
- Misses 7818 7830 +12
+ Partials 479 474 -5
Continue to review full report at Codecov.
|
pkedy
left a comment
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.
Late comments
| assert.NoError(t, err) | ||
| currentHttpPort, err := network.GetAvailablePort() | ||
| ports, err := dapr_testing.GetFreePorts(2) | ||
| assert.NoError(t, 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.
You want require.NoError here.
| assert.NoError(t, err) | ||
| currentHttpPort, err = network.GetAvailablePort() | ||
| ports, err = dapr_testing.GetFreePorts(2) | ||
| assert.NoError(t, 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.
You want require.NoError here.
…apr#1245) Signed-off-by: Amit Mor <amitm@at-bay.com>
…apr#1245) Signed-off-by: Amit Mor <amitm@at-bay.com>
…apr#1245) Signed-off-by: Amit Mor <amitm@at-bay.com>
…apr#1245) Signed-off-by: Amit Mor <amitm@at-bay.com>
Description
Removes code duplication for port allocation.
Use dapr/dapr/pkg/testing/network instead