Skip to content

Commit

Permalink
fix :dd-java-agent:instrumentation:vertx-web-4.0:compileLatestDepTest…
Browse files Browse the repository at this point in the history
…Groovy
  • Loading branch information
jandro996 committed Jun 15, 2023
1 parent 6dc8596 commit b24d234
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import datadog.trace.api.iast.InstrumentationBridge
import datadog.trace.api.iast.sink.UnvalidatedRedirectModule
import io.vertx.core.DeploymentOptions
import io.vertx.core.Vertx
import io.vertx.core.VertxOptions
import io.vertx.core.impl.VertxInternal
import io.vertx.core.json.JsonObject
import okhttp3.Request
Expand Down Expand Up @@ -71,7 +72,7 @@ class IastVertxSinksTest extends IastHttpServerTest<Vertx40Server> {

@Override
void start() {
server = Vertx.vertx()
server = Vertx.vertx(new VertxOptions().setClusterManager())
final future = new CompletableFuture<>()
server.deployVerticle('server.IastSinksVerticle',
new DeploymentOptions()
Expand All @@ -83,6 +84,10 @@ class IastVertxSinksTest extends IastHttpServerTest<Vertx40Server> {
future.complete(null)
}
future.get()
final httpServers = server.sharedHttpServers().values()
if (!httpServers.empty) {
port = httpServers.first().actualPort()
}
port = server.sharedHttpServers().values().first().actualPort()
}

Expand Down

0 comments on commit b24d234

Please sign in to comment.