diff --git a/core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/UnknownShapesTest.java b/core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/UnknownShapesTest.java index 7103c054e9..6499bbf185 100644 --- a/core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/UnknownShapesTest.java +++ b/core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/UnknownShapesTest.java @@ -87,6 +87,7 @@ private Set getRelevantLog(int expectedNumberOfItems) { .map(String::trim) .collect(Collectors.toSet()); } while (relevantLog.size() < expectedNumberOfItems); + assert relevantLog.size() == expectedNumberOfItems; return relevantLog; } @@ -105,7 +106,7 @@ public void testComplexPath() throws IOException { } } - Set relevantLog = getRelevantLog(4).stream() + Set relevantLog = getRelevantLog(5).stream() .sorted() .collect(Collectors.toCollection(LinkedHashSet::new));