Skip to content

Commit

Permalink
fix: test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
daho4b committed Sep 10, 2021
1 parent 67b14bb commit 97947cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class LogServiceTest {
private static final String RC_SERVICE_ERROR_TEXT = "Rocket.Chat service error: {}";
private static final String INTERNAL_SERVER_ERROR_TEXT = "Internal Server Error: ";
private static final String BAD_REQUEST_TEXT = "Bad Request: {}";
private static final String MESSAGE_API_LOG_TEXT = "MessageService API: {}:";
private static final String MESSAGE_API_LOG_TEXT = "MessageService API: {}";

@Mock Exception exception;

Expand Down Expand Up @@ -121,7 +121,7 @@ public void logWarning_Should_LogWarnMessageWithHttpStatus() {
LogService.logWarning(HttpStatus.INTERNAL_SERVER_ERROR, exception);
verify(logger, times(1))
.warn(
eq(MESSAGE_API_LOG_TEXT + " {}"),
eq(MESSAGE_API_LOG_TEXT + ": {}"),
eq(HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase()),
anyString());
verify(exception, atLeastOnce()).printStackTrace(any(PrintWriter.class));
Expand Down

0 comments on commit 97947cb

Please sign in to comment.