-
Notifications
You must be signed in to change notification settings - Fork 344
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
Use New Admin Port Flag #1281
Use New Admin Port Flag #1281
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1281 +/- ##
==========================================
+ Coverage 87.31% 87.32% +0.01%
==========================================
Files 90 90
Lines 4942 4947 +5
==========================================
+ Hits 4315 4320 +5
Misses 464 464
Partials 163 163
Continue to review full report at Codecov.
|
49ba53e
to
80ee898
Compare
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.
LGTM. If you don't want to use the table tests for the unit tests, let me know and I'll approve this.
pkg/util/util_test.go
Outdated
@@ -353,6 +353,35 @@ func TestGetPortSpecified(t *testing.T) { | |||
assert.Equal(t, int32(6831), GetPort("--processor.jaeger-compact.server-host-port=", args, 1234)) | |||
} | |||
|
|||
func TestGetAdminPortDefault(t *testing.T) { |
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.
This looks good, but you could have used a table test here, with the args, the default port and the expected outcome as the test's struct:
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.
That looks better, will change to table test now
will check the new flag for retrieving admin port and if not available will use the old one instead Signed-off-by: johanavril <[email protected]>
80ee898
to
74514ea
Compare
Thanks for your contribution! |
Closes #1276