Skip to content

Commit

Permalink
Change status message, when no DB check was done yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
tack-sap committed Feb 12, 2024
1 parent 25b2f52 commit a39ba3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public String getHealthz(HttpServletResponse response) {
return "stopping\n";
} else {
if (wasLastConnectionSuccessful == null) {
return "No Check done.\n";
return "UAA running. Database status unknown.\n";
}

if (wasLastConnectionSuccessful) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void setUp() throws SQLException {

@Test
void getHealthz() {
assertEquals("No Check done.\n", endpoint.getHealthz(response));
assertEquals("UAA running. Database status unknown.\n", endpoint.getHealthz(response));
}

@Test
Expand Down

0 comments on commit a39ba3f

Please sign in to comment.