diff --git a/instrumentation/finatra-2.9/javaagent/src/latestDepTest/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerLatestTest.scala b/instrumentation/finatra-2.9/javaagent/src/latestDepTest/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerLatestTest.scala index dcc771532373..d7c145822244 100644 --- a/instrumentation/finatra-2.9/javaagent/src/latestDepTest/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerLatestTest.scala +++ b/instrumentation/finatra-2.9/javaagent/src/latestDepTest/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerLatestTest.scala @@ -39,7 +39,7 @@ class FinatraServerLatestTest extends AbstractHttpServerTest[HttpServer] { implicit val ec: ExecutionContext = ExecutionContext.fromExecutor(startupThread) Future { - testServer.main(Array("-admin.port=:0", "-http.port=:" + port)) + testServer.nonExitingMain(Array("-admin.port=:0", "-http.port=:" + port)) } testServer.awaitReady() } diff --git a/instrumentation/finatra-2.9/javaagent/src/test/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerTest.scala b/instrumentation/finatra-2.9/javaagent/src/test/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerTest.scala index 2679d67b0829..8eee6af30991 100644 --- a/instrumentation/finatra-2.9/javaagent/src/test/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerTest.scala +++ b/instrumentation/finatra-2.9/javaagent/src/test/scala/io/opentelemetry/javaagent/instrumentation/finatra/FinatraServerTest.scala @@ -39,7 +39,7 @@ class FinatraServerTest extends AbstractHttpServerTest[HttpServer] { implicit val ec: ExecutionContext = ExecutionContext.fromExecutor(startupThread) Future { - testServer.main(Array("-admin.port=:0", "-http.port=:" + port)) + testServer.nonExitingMain(Array("-admin.port=:0", "-http.port=:" + port)) } testServer.awaitReady() }