#19553 One2OneBidi should report truncation also if wrapped flow cancels early
This commit is contained in:
parent
0170280fc0
commit
8e37ff42f5
4 changed files with 21 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ package akka.http.impl.engine.client
|
|||
|
||||
import scala.concurrent.Await
|
||||
import scala.concurrent.duration._
|
||||
import akka.stream.{ FlowShape, ActorMaterializer }
|
||||
import akka.stream.{ ActorMaterializerSettings, FlowShape, ActorMaterializer }
|
||||
import akka.stream.scaladsl._
|
||||
import akka.stream.testkit.AkkaSpec
|
||||
import akka.http.scaladsl.{ Http, TestUtils }
|
||||
|
|
@ -15,7 +15,7 @@ import akka.stream.testkit.Utils
|
|||
import org.scalatest.concurrent.ScalaFutures
|
||||
|
||||
class HighLevelOutgoingConnectionSpec extends AkkaSpec with ScalaFutures {
|
||||
implicit val materializer = ActorMaterializer()
|
||||
implicit val materializer = ActorMaterializer(ActorMaterializerSettings(system).withFuzzing(true))
|
||||
implicit val patience = PatienceConfig(1.second)
|
||||
|
||||
"The connection-level client implementation" should {
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ class LowLevelOutgoingConnectionSpec extends AkkaSpec("akka.loggers = []\n akka.
|
|||
val error @ EntityStreamException(info) = probe.expectError()
|
||||
info.summary shouldEqual "Illegal chunk termination"
|
||||
|
||||
responses.expectComplete()
|
||||
responses.expectError()
|
||||
netOut.expectComplete()
|
||||
requestsSub.expectCancellation()
|
||||
netInSub.expectCancellation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue