From ae2c89f66773283bb4b88642581a6de7db63be0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=CC=8Avard=20Ottestad?= Date: Thu, 21 Nov 2024 14:52:11 +0100 Subject: [PATCH] GH-5130 fix test --- .../java/org/eclipse/rdf4j/sail/shacl/UnknownShapesTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));