!str #16235 Rename Sink.future to Sink.head

This commit is contained in:
Patrik Nordwall 2014-11-06 18:13:06 +01:00
parent 359681e446
commit 65269274b1
28 changed files with 83 additions and 83 deletions

View file

@ -213,7 +213,7 @@ class UnmarshallingSpec extends FreeSpec with Matchers with BeforeAndAfterAll wi
def haveParts[T <: Multipart](parts: Multipart.BodyPart*): Matcher[Future[T]] =
equal(parts).matcher[Seq[Multipart.BodyPart]] compose { x
Await.result(x
.fast.flatMap(x x.parts.grouped(100).runWith(Sink.future))
.fast.flatMap(x x.parts.grouped(100).runWith(Sink.head))
.fast.recover { case _: NoSuchElementException Nil }, 1.second)
}
}