- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 61
 
Open
Description
BaseOneServerPerSuite.run lines 168-172 read:
} 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.
Metadata
Metadata
Assignees
Labels
No labels