-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
handle(Class) accepts Throwable, however run(RunnableRetry) catches only Exception. So the following statement will not retry:
retry(3)
.delay(Duration.ofMillis(500))
.handle(AssertionError.class)
.run(() -> {
get("/eventually/consistent/resources")
.then()
.statusCode(200);
});
Catching Error is not recommended in most cases, but in this case it will help to make the framework useful in unit tests.
Metadata
Metadata
Assignees
Labels
No labels