We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7bf8d9 commit 02edc56Copy full SHA for 02edc56
src/test/java/com/rabbitmq/stream/impl/FilteringTest.java
@@ -234,16 +234,20 @@ private void publish(
234
235
private static void repeatIfFailure(RunnableWithException test) throws Exception {
236
int executionCount = 0;
237
- Exception lastException = null;
+ Throwable lastException = null;
238
while (executionCount < 5) {
239
try {
240
test.run();
241
return;
242
- } catch (Exception e) {
+ } catch (Exception | AssertionError e) {
243
executionCount++;
244
lastException = e;
245
}
246
247
- throw lastException;
+ if (lastException instanceof Error) {
248
+ throw new RuntimeException(lastException);
249
+ } else {
250
+ throw (Exception) lastException;
251
+ }
252
253
0 commit comments