Skip to content

Commit

Permalink
use Iterator.continually instead of Stream.continually in a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Jun 18, 2018
1 parent 70d1deb commit 72a04d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EventuallyResultsSpec extends Specification with ResultMatchers {


"If all retries fail, the result will eventually fail" in {
val iterator = Stream.continually(Failure()).iterator
val iterator = Iterator.continually(Failure())
eventually(iterator.next).not
}
"Any object convertible to a result can be used with eventually" in {
Expand Down

0 comments on commit 72a04d1

Please sign in to comment.