Details
-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b117
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8028873 | port-stage-ppc-aix | Paul Sandoz | P3 | Resolved | Fixed | master |
Description
TESTFAIL:java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java
public void testWithUnorderedInfiniteStream() {
// These tests should short-circuit, otherwise will fail with a time-out
// or an OOME
Integer one = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny().get();
assertEquals(one.intValue(), 1);
Optional<Integer> oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny();
assertTrue(oi.isPresent());
}
The first part of this test is failing because it incorrectly asserts the value for the first element, it should be the same as the second part of the test.
public void testWithUnorderedInfiniteStream() {
// These tests should short-circuit, otherwise will fail with a time-out
// or an OOME
Integer one = Stream.iterate(1, i -> i + 1).unordered().parallel().distinct().findAny().get();
assertEquals(one.intValue(), 1);
Optional<Integer> oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny();
assertTrue(oi.isPresent());
}
The first part of this test is failing because it incorrectly asserts the value for the first element, it should be the same as the second part of the test.
Attachments
Issue Links
- backported by
-
JDK-8028873 DistinctOpTest fails for unordered test
- Resolved