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.
# Conflicts:
#	flow-test-util/src/main/java/com/vaadin/flow/testutil/TestBenchHelpers.java
  • Loading branch information
DiegoCardoso authored and pleku committed Sep 17, 2020
1 parent 92796a7 commit dccf86a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -372,7 +372,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 "))
&& !acceptableMessagePredicate
.test(logEntry.getMessage())) {
throw new AssertionError(String.format(
Expand Down

0 comments on commit dccf86a

Please sign in to comment.