Skip to content

Commit

Permalink
fix: surround 404 check with spaces (#8997)
Browse files Browse the repository at this point in the history
`checkLogsForErrors` checks if the message contains `404`, 
but it will match if the sequence is part of a number.
  • Loading branch information
DiegoCardoso authored and caalador committed Sep 16, 2020
1 parent c5704ce commit 33a09a2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -379,7 +379,7 @@ protected void checkLogsForErrors(
Predicate<String> acceptableMessagePredicate) {
getLogEntries(Level.WARNING).forEach(logEntry -> {
if ((Objects.equals(logEntry.getLevel(), Level.SEVERE)
|| logEntry.getMessage().contains("404"))
|| logEntry.getMessage().contains(" 404 "))
&& !logEntry.getMessage()
.contains(WEB_SOCKET_CONNECTION_ERROR_PREFIX)
&& !acceptableMessagePredicate
Expand Down

0 comments on commit 33a09a2

Please sign in to comment.