mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-06-01 10:36:15 +08:00
Change to units tests for LengthFieldPrepender class to make it work with utf8 strings.
Motivation: To ensure that non ascii strings work in the test. Modifications: One more change to standardDataStringCount forgotten in the last commit. Result: Non ascii strings work.
This commit is contained in:
parent
de879a2dc2
commit
343428c4e0
@ -92,7 +92,7 @@ class LengthFieldPrependerTest: XCTestCase {
|
||||
|
||||
if case .some(.byteBuffer(var outputBuffer)) = self.channel.readOutbound() {
|
||||
|
||||
let bodyString = outputBuffer.readString(length: standardDataString.count)
|
||||
let bodyString = outputBuffer.readString(length: standardDataStringCount)
|
||||
XCTAssertEqual(standardDataString, bodyString)
|
||||
|
||||
let additionalData = outputBuffer.readBytes(length: 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user