Damian Kołakowski 10 år sedan
förälder
incheckning
517c9d519a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      SwifterTests/SwifterTestsHttpParser.swift

+ 1 - 1
SwifterTests/SwifterTestsHttpParser.swift

@@ -88,7 +88,7 @@ class SwifterTestsHttpParser: XCTestCase {
         
         do {
             try parser.readHttpRequest(TestSocket("GET / HTTP/1.0\nContent-Length: 10\r\n\n"))
-            XCTAssertTrue(false, "Parser should  throw an error could not reat the number of bytes defined by 'Content-Length' header.")
+            XCTAssertTrue(false, "Parser should throw an error if request' body is too short.")
         } catch { }
         
         var r = try? parser.readHttpRequest(TestSocket("GET / HTTP/1.0\nContent-Length: 10\n\n1234567890"))