Modify finatra test so it would not call system exit (#9361)
This commit is contained in:
parent
4f1becf9c4
commit
32614d5ba5
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue