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 954b7d2 commit 5db8452Copy full SHA for 5db8452
src/test/scala/PolicySpec.scala
@@ -57,6 +57,17 @@ class PolicySpec extends FunSpec with BeforeAndAfterAll {
57
Await.ready(future, Duration.Inf)
58
assert(counter.get() === 4)
59
}
60
+
61
+ it ("should accept a future in reduced syntax format") {
62
+ implicit val success = Success.always
63
+ val counter = new AtomicInteger()
64
+ val future = retry.Directly(1) {
65
+ counter.incrementAndGet()
66
+ Future.failed(new RuntimeException("always failing"))
67
+ }
68
+ Await.ready(future, Duration.Inf)
69
+ assert(counter.get() === 2)
70
71
72
73
describe("retry.Pause") {
0 commit comments