Skip to content

Commit

Permalink
Fix EnsureNoWarning assertion
Browse files Browse the repository at this point in the history
EnsureNoWarnings method should assert that there is no other warnings
than the allowed "predefined" warnings in filteredWarnings() method

bug introduced in elastic#71207
  • Loading branch information
pgomulka committed Jun 2, 2021
1 parent c816765 commit b583210
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public void ensureNoWarnings() {
// unit tests do not run with the bundled JDK, if there are warnings we need to filter the no-jdk deprecation warning
final List<String> filteredWarnings = warnings
.stream()
.filter(k -> filteredWarnings().stream().anyMatch(s -> s.contains(k)))
.filter(k -> filteredWarnings().stream().anyMatch(s -> s.contains(k) == false))
.collect(Collectors.toList());
assertThat("unexpected warning headers", filteredWarnings, empty());
} else {
Expand Down

0 comments on commit b583210

Please sign in to comment.