Set port in RatpackOtherTest
MODIFY
instrumentation/ratpack-1.4/javaagent/src/test/groovy/RatpackOtherTest.groovy
instrumentation/ratpack-1.4/javaagent/src/test/groovy/RatpackOtherTest.groovy
@@ -7,6 +7,7 @@ import static io.opentelemetry.api.trace.SpanKind.INTERNAL
import static io.opentelemetry.api.trace.SpanKind.SERVER
import io.opentelemetry.instrumentation.test.AgentInstrumentationSpecification
+import io.opentelemetry.instrumentation.test.utils.PortUtils
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes
import io.opentelemetry.testing.internal.armeria.client.WebClient
import ratpack.path.PathBinding
@@ -17,6 +18,10 @@ class RatpackOtherTest extends AgentInstrumentationSpecification {
@Shared
RatpackServer app = RatpackServer.start {
+ it.serverConfig {
+ it.port(PortUtils.findOpenPort())
+ it.address(InetAddress.getByName("localhost"))
+ }
it.handlers {
it.prefix("a") {
it.all {context ->

Set port in RatpackOtherTest (#3373)