Skip to content

Commit 4a617a5

Browse files
authored
Merge pull request #18681 from eugenp/lor6-patch-1
BAEL-9178 add comment for disabling StringToUniqueIntUnitTest
2 parents 560ed7f + 62af16b commit 4a617a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core-java-modules/core-java-string-algorithms-5/src/test/java/com/baeldung/uniqueint/StringToUniqueIntUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class StringToUniqueIntUnitTest {
1818

19-
@Disabled
19+
@Disabled //the test may fail in the automated build as it deals with uncertainty (unique collection to a degree); comment this annotation to run the test
2020
@ParameterizedTest
2121
@MethodSource("implementations")
2222
public void given1kElements_whenMappedToInt_thenItShouldHaveNoDuplicates(Function<String, Integer> implementation) {
@@ -46,4 +46,4 @@ private static Stream<String> uniqueStringsOfSize(int size) {
4646
.uniqueElements()
4747
.sample();
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)