Skip to content
Browse files

test: Assert against correct error messages

PR-URL: #279
Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e2e467b commit 678a9e21f11e5ea93e5e17a2302390f88a6a8c46 @jbergstroem jbergstroem committed with jasnell
Showing with 2 additions and 2 deletions.
  1. +2 −2 test.c
View
4 test.c
@@ -3356,7 +3356,7 @@ test_double_content_length_error (int req)
parsed = http_parser_execute(&parser, &settings_null, buf, buflen);
if (parsed != buflen) {
- assert(HTTP_PARSER_ERRNO(&parser) == HPE_MULTIPLE_CONTENT_LENGTH);
+ assert(HTTP_PARSER_ERRNO(&parser) == HPE_UNEXPECTED_CONTENT_LENGTH);
return;
}
@@ -3383,7 +3383,7 @@ test_chunked_content_length_error (int req)
parsed = http_parser_execute(&parser, &settings_null, buf, buflen);
if (parsed != buflen) {
- assert(HTTP_PARSER_ERRNO(&parser) == HPE_CHUNKED_WITH_CONTENT_LENGTH);
+ assert(HTTP_PARSER_ERRNO(&parser) == HPE_UNEXPECTED_CONTENT_LENGTH);
return;
}

0 comments on commit 678a9e2

Please sign in to comment.
Something went wrong with that request. Please try again.