Skip to content

Commit

Permalink
remove assertions about akka 2.5 (#292)
Browse files Browse the repository at this point in the history
Update LowLevelOutgoingConnectionSpec.scala
  • Loading branch information
pjfanning authored Aug 4, 2023
1 parent ea6bdfa commit 5f4d1dc
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,8 @@ class LowLevelOutgoingConnectionSpec extends PekkoSpecWithMaterializer with Insi
info.summary shouldEqual "HTTP message had declared Content-Length 8 but entity data stream amounts to 2 bytes less"
netInSub.sendComplete()
responsesSub.request(1)
responses.expectError().getMessage should (
equal("HTTP message had declared Content-Length 8 but entity data stream amounts to 2 bytes less").or( // with Akka 2.6
equal(
"The http server closed the connection unexpectedly before delivering responses for 1 outstanding requests")) // with Akka 2.5
)
responses.expectError().getMessage should equal(
"HTTP message had declared Content-Length 8 but entity data stream amounts to 2 bytes less")
}

"catch the request entity stream being longer than the Content-Length" in new TestSetup {
Expand All @@ -543,11 +540,8 @@ class LowLevelOutgoingConnectionSpec extends PekkoSpecWithMaterializer with Insi
info.summary shouldEqual "HTTP message had declared Content-Length 8 but entity data stream amounts to more bytes"
netInSub.sendComplete()
responsesSub.request(1)
responses.expectError().getMessage should (
equal("HTTP message had declared Content-Length 8 but entity data stream amounts to more bytes").or( // with Akka 2.6
equal(
"The http server closed the connection unexpectedly before delivering responses for 1 outstanding requests")) // with Akka 2.5
)
responses.expectError().getMessage should equal(
"HTTP message had declared Content-Length 8 but entity data stream amounts to more bytes")
}

"catch illegal response starts" in new TestSetup {
Expand Down

0 comments on commit 5f4d1dc

Please sign in to comment.