You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} catch { // In case the suite aborts, ensure the server is stopped
case ex: Throwable =>
runningServer.stopServer.close()
throw ex
}
When runningServer.stopServer.close() throws another exception for any reason, the original exception is completely swallowed. This happens for example when new GuiceApplicationBuilder().configure(config).build() is called with a config property that has a different type than in application.conf. The application fails to start, the implicit lazy val app in BaseOneServerPerSuite is not initialized. runningServer.stopServer.close() tries to access and thus initialize app again, but Akka is already bound to port 25520, and the application fails to start because of a java.net.BindException.
The text was updated successfully, but these errors were encountered:
BaseOneServerPerSuite.run
lines 168-172 read:When
runningServer.stopServer.close()
throws another exception for any reason, the original exception is completely swallowed. This happens for example whennew GuiceApplicationBuilder().configure(config).build()
is called with a config property that has a different type than in application.conf. The application fails to start, theimplicit lazy val app
inBaseOneServerPerSuite
is not initialized.runningServer.stopServer.close()
tries to access and thus initializeapp
again, but Akka is already bound to port 25520, and the application fails to start because of ajava.net.BindException
.The text was updated successfully, but these errors were encountered: