Skip to content

Commit

Permalink
Fix test numbers
Browse files Browse the repository at this point in the history
PR-URL: nodejs#511
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
derekargueta authored and bnoordhuis committed May 5, 2020
1 parent 55e736c commit 805a0d1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ const struct message requests[] =
,.body= ""
}

#define SOURCE_ICE_REQUEST 42
#define SOURCE_ICE_REQUEST 43
, {.name = "source request"
,.type= HTTP_REQUEST
,.raw= "SOURCE /music/sweet/music ICE/1.0\r\n"
Expand All @@ -1192,7 +1192,7 @@ const struct message requests[] =
,.body= ""
}

#define POST_MULTI_TE_LAST_CHUNKED 43
#define POST_MULTI_TE_LAST_CHUNKED 44
, {.name= "post - multi coding transfer-encoding chunked body"
,.type= HTTP_REQUEST
,.raw= "POST / HTTP/1.1\r\n"
Expand All @@ -1219,7 +1219,7 @@ const struct message requests[] =
,.chunk_lengths= { 0x1e }
}

#define POST_MULTI_LINE_TE_LAST_CHUNKED 44
#define POST_MULTI_LINE_TE_LAST_CHUNKED 45
, {.name= "post - multi line coding transfer-encoding chunked body"
,.type= HTTP_REQUEST
,.raw= "POST / HTTP/1.1\r\n"
Expand Down Expand Up @@ -1821,7 +1821,7 @@ const struct message responses[] =
,.chunk_lengths= { 1 }
}

#define EMPTY_REASON_PHRASE_AFTER_SPACE 20
#define EMPTY_REASON_PHRASE_AFTER_SPACE 21
, {.name= "empty reason phrase after space"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 \r\n"
Expand All @@ -1837,7 +1837,7 @@ const struct message responses[] =
,.body= ""
}

#define CONTENT_LENGTH_X 21
#define CONTENT_LENGTH_X 22
, {.name= "Content-Length-X"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 OK\r\n"
Expand All @@ -1863,7 +1863,7 @@ const struct message responses[] =
,.chunk_lengths= { 2 }
}

#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER 22
#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER 23
, {.name= "HTTP 101 response with Upgrade header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 101 Switching Protocols\r\n"
Expand All @@ -1885,7 +1885,7 @@ const struct message responses[] =
}
}

#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 23
#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 24
, {.name= "HTTP 101 response with Upgrade and Content-Length header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 101 Switching Protocols\r\n"
Expand All @@ -1911,7 +1911,7 @@ const struct message responses[] =
}
}

#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 24
#define HTTP_101_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 25
, {.name= "HTTP 101 response with Upgrade and Transfer-Encoding header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 101 Switching Protocols\r\n"
Expand Down Expand Up @@ -1944,7 +1944,7 @@ const struct message responses[] =
,.chunk_lengths= { 2, 2 }
}

#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER 25
#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER 26
, {.name= "HTTP 200 response with Upgrade header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 OK\r\n"
Expand All @@ -1967,7 +1967,7 @@ const struct message responses[] =
}
}

#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 26
#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_CONTENT_LENGTH 27
, {.name= "HTTP 200 response with Upgrade and Content-Length header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 OK\r\n"
Expand All @@ -1992,7 +1992,7 @@ const struct message responses[] =
}
}

#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 27
#define HTTP_200_RESPONSE_WITH_UPGRADE_HEADER_AND_TRANSFER_ENCODING 28
, {.name= "HTTP 200 response with Upgrade and Transfer-Encoding header"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 OK\r\n"
Expand Down Expand Up @@ -2023,7 +2023,7 @@ const struct message responses[] =
,.num_chunks_complete= 3
,.chunk_lengths= { 2, 2 }
}
#define HTTP_200_MULTI_TE_NOT_LAST_CHUNKED 28
#define HTTP_200_MULTI_TE_NOT_LAST_CHUNKED 29
, {.name= "HTTP 200 response with `chunked` being *not last* Transfer-Encoding"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 200 OK\r\n"
Expand Down

0 comments on commit 805a0d1

Please sign in to comment.