-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Direct policy retries one more time than specified. There is test which shows that:
it ("should deal with future failures") {
implicit val success = Success.always
val policy = retry.Directly(3)
val counter = new AtomicInteger()
val future = policy { () =>
counter.incrementAndGet()
Future.failed(new RuntimeException("always failing"))
}
Await.ready(future, Duration.Inf)
assert(counter.get() === 4)
}
In documentation there is
// retry 4 times
val future = retry.Directly(4) {
attempt
}
which is inconsistent with test
Metadata
Metadata
Assignees
Labels
No labels