bug6102: dropping test DB in ClearStateServlet

This commit is contained in:
Axel Uhl
2025-03-14 16:56:06 +01:00
parent e0b1f6c3aa
commit 279da4a8d9
@@ -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.");