=doc, htp minor fixes in docs and tests
This commit is contained in:
parent
3e3454e617
commit
2012726f1b
5 changed files with 8 additions and 10 deletions
|
|
@ -302,7 +302,7 @@ class MessageSpec extends FreeSpec with Matchers with WithMaterializerSpec {
|
|||
}
|
||||
"for a streamed message don't convert half surrogate pairs naively" in new ServerTestSetup {
|
||||
val gclef = "𝄞"
|
||||
gclef.size shouldEqual 2
|
||||
gclef.length shouldEqual 2
|
||||
|
||||
// split up the code point
|
||||
val half1 = gclef.take(1)
|
||||
|
|
|
|||
|
|
@ -37,8 +37,7 @@ class WebsocketServerSpec extends FreeSpec with Matchers with WithMaterializerSp
|
|||
|
||||
val request = expectRequest
|
||||
val upgrade = request.header[UpgradeToWebsocket]
|
||||
upgrade.isDefined shouldBe
|
||||
true
|
||||
upgrade.isDefined shouldBe true
|
||||
|
||||
val source =
|
||||
Source(List(1, 2, 3, 4, 5)).map(num ⇒ TextMessage.Strict(s"Message $num"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue