chore: Fix FlowCollectWhileSpec. #985
This commit is contained in:
parent
7b2a3d8c27
commit
b1ec854b8c
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ class FlowCollectWhileSpec extends StreamSpec with ScriptedTest {
|
|||
|
||||
"restart when pf throws" in {
|
||||
Source(1 to 6)
|
||||
.collect { case x: Int => if (x % 2 == 0) throw TE("") else x }
|
||||
.collectWhile { case x: Int => if (x % 2 == 0) throw TE("") else x }
|
||||
.withAttributes(supervisionStrategy(restartingDecider))
|
||||
.runWith(TestSink[Int]())
|
||||
.request(1)
|
||||
|
|
@ -76,7 +76,7 @@ class FlowCollectWhileSpec extends StreamSpec with ScriptedTest {
|
|||
|
||||
"resume when pf throws" in {
|
||||
Source(1 to 6)
|
||||
.collect { case x: Int => if (x % 2 == 0) throw TE("") else x }
|
||||
.collectWhile { case x: Int => if (x % 2 == 0) throw TE("") else x }
|
||||
.withAttributes(supervisionStrategy(resumingDecider))
|
||||
.runWith(TestSink[Int]())
|
||||
.request(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue