-
Notifications
You must be signed in to change notification settings - Fork 885
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
Fixed dropwizard and netty test issues #60
Fixed dropwizard and netty test issues #60
Conversation
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.
Nice! A couple comments below.
@@ -61,7 +61,7 @@ class Netty40ClientTest extends HttpClientTest<NettyHttpClientDecorator> { | |||
|
|||
def "connection error (unopened port)"() { | |||
given: | |||
def uri = new URI("http://localhost:$UNUSABLE_PORT/") | |||
def uri = new URI("http://127.0.0.1:$UNUSABLE_PORT/") // Use numeric address to avoid ipv4/ipv6 confusion |
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.
👍
@@ -71,6 +71,7 @@ class Netty40ClientTest extends HttpClientTest<NettyHttpClientDecorator> { | |||
then: | |||
def ex = thrown(Exception) | |||
def thrownException = ex instanceof ExecutionException ? ex.cause : ex | |||
println "Exception: $ex" |
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.
Just checking if this was an artifact of debugging, or intentionally part of PR, I'm ok either way
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 is leftover debugging. I'll get rid of it.
def testSupport = new DropwizardTestSupport(testApp(), | ||
null, | ||
ConfigOverride.config("server.applicationConnectors[0].port", "$port")) | ||
ConfigOverride.config("server.applicationConnectors[0].port", "$port"), | ||
ConfigOverride.config("server.adminConnectors[0].port", "" + PortUtils.randomOpenPort())) |
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.
The check
build failed, flagging this line, see https://829-210933087-gh.circle-artifacts.com/0/home/circleci/dd-trace-java/reports/java-agent/instrumentation/dropwizard/codenarc/test.html
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.
OK. That's a lazy way of making a string from an int. Not that it matters in this context, but we want clean builds, so I'll change it!
Will do as soon as I’m back to my laptop. |
That ended up being a really messy merge... :( Lots of rename and add conflicts. I may just isolate my changes and issue a new PR against master instead.
|
Sounds good |
Fixed #58 (Dropwizard fails when port 9091 is used)
Fixed #59 (netty test fails when connecting over ipv6)