!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

@ -95,6 +95,6 @@ trait RouteTestResultComponent {
failTest("Request was neither completed nor rejected within " + timeout)
private def awaitAllElements[T](data: Source[T]): immutable.Seq[T] =
Await.result(data.grouped(Int.MaxValue).runWith(Sink.future), timeout)
Await.result(data.grouped(Int.MaxValue).runWith(Sink.head), timeout)
}
}