Skip to content

Commit

Permalink
test: Assert against correct error messages
Browse files Browse the repository at this point in the history
PR-URL: nodejs#279
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
jbergstroem authored and jasnell committed Feb 10, 2016
1 parent e2e467b commit 678a9e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 678a9e2

Please sign in to comment.