mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug6102: dropping test DB in ClearStateServlet
This commit is contained in:
+1
@@ -54,6 +54,7 @@ public class ClearStateServlet extends HttpServlet {
|
||||
for (ClearStateTestSupport service : services) {
|
||||
service.clearState();
|
||||
}
|
||||
configuration.getService().getMongoClient().getDatabase(TEST_DB_NAME).drop();
|
||||
response.setStatus(HttpServletResponse.SC_NO_CONTENT);
|
||||
} catch (Exception exception) {
|
||||
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Error trying to clear state. See erver log for details.");
|
||||
|
||||
Reference in New Issue
Block a user