8327854: Test java/util/stream/test/org/openjdk/tests/java/util/stream/WhileOpStatefulTest.java failed with RuntimeException

Reviewed-by: psandoz
This commit is contained in:
Viktor Klang 2024-07-02 20:27:52 +00:00
parent a3479576c9
commit 27982c8f5d

@ -256,7 +256,7 @@ public class WhileOpStatefulTest extends OpTestCase {
EXECUTION_TIME_LIMIT);
return s.peek(e -> {
if (!isWithinExecutionPeriod.getAsBoolean()) {
throw new RuntimeException();
throw new RuntimeException("Execution time limit exceeded!");
}
});
});
@ -266,7 +266,7 @@ public class WhileOpStatefulTest extends OpTestCase {
return s.parallel()
.peek(e -> {
if (!isWithinExecutionPeriod.getAsBoolean()) {
throw new RuntimeException();
throw new RuntimeException("Execution time limit exceeded!");
}
});
});