Skip to content

Commit

Permalink
chore: Fix flaky test in unsafeOptionalDataVia
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Dec 17, 2024
1 parent 53761e5 commit 42d3a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class SourceWithContextSpec extends StreamSpec {
)(Keep.none)
.runWith(TestSink.probe[(Option[Int], Int)])
.request(4)
.expectNext((Some(1), 1), (None, 2), (None, 3), (Some(4), 4))
.expectNextN(List((Some(1), 1), (None, 2), (None, 3), (Some(4), 4)))
.expectComplete()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object SourceWithContext {
}

val filterUnavailable = Flow[(Option[SOut], Ctx)].collect {
case (None, ctx) => (Option.empty[FOut], ctx)
case x @ (None, _) => x.asInstanceOf[(Option[FOut], Ctx)]
}

val mapIntoOption = Flow[(FOut, Ctx)].map {
Expand Down

0 comments on commit 42d3a5d

Please sign in to comment.