Skip to content

Commit

Permalink
8327854: Test java/util/stream/test/org/openjdk/tests/java/util/strea…
Browse files Browse the repository at this point in the history
…m/WhileOpStatefulTest.java failed with RuntimeException

Reviewed-by: psandoz
  • Loading branch information
Viktor Klang committed Jul 2, 2024
1 parent a347957 commit 27982c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private void testWhileMulti(Map<String, Supplier<Stream<Integer>>> sources,
EXECUTION_TIME_LIMIT);
return s.peek(e -> {
if (!isWithinExecutionPeriod.getAsBoolean()) {
throw new RuntimeException();
throw new RuntimeException("Execution time limit exceeded!");
}
});
});
Expand All @@ -266,7 +266,7 @@ private void testWhileMulti(Map<String, Supplier<Stream<Integer>>> sources,
return s.parallel()
.peek(e -> {
if (!isWithinExecutionPeriod.getAsBoolean()) {
throw new RuntimeException();
throw new RuntimeException("Execution time limit exceeded!");
}
});
});
Expand Down

1 comment on commit 27982c8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.