Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit 678a9e2

Browse files
jbergstroemjasnell
authored andcommitted
test: Assert against correct error messages
PR-URL: #279 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e2e467b commit 678a9e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,7 @@ test_double_content_length_error (int req)
33563356

33573357
parsed = http_parser_execute(&parser, &settings_null, buf, buflen);
33583358
if (parsed != buflen) {
3359-
assert(HTTP_PARSER_ERRNO(&parser) == HPE_MULTIPLE_CONTENT_LENGTH);
3359+
assert(HTTP_PARSER_ERRNO(&parser) == HPE_UNEXPECTED_CONTENT_LENGTH);
33603360
return;
33613361
}
33623362

@@ -3383,7 +3383,7 @@ test_chunked_content_length_error (int req)
33833383

33843384
parsed = http_parser_execute(&parser, &settings_null, buf, buflen);
33853385
if (parsed != buflen) {
3386-
assert(HTTP_PARSER_ERRNO(&parser) == HPE_CHUNKED_WITH_CONTENT_LENGTH);
3386+
assert(HTTP_PARSER_ERRNO(&parser) == HPE_UNEXPECTED_CONTENT_LENGTH);
33873387
return;
33883388
}
33893389

0 commit comments

Comments
 (0)