Commit b464cb78 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix tests to reflect their intent

parent 344d663e
...@@ -4240,7 +4240,7 @@ void test_nghttp2_session_pack_headers_with_padding(void) ...@@ -4240,7 +4240,7 @@ void test_nghttp2_session_pack_headers_with_padding(void)
accumulator acc; accumulator acc;
my_user_data ud; my_user_data ud;
nghttp2_session_callbacks callbacks; nghttp2_session_callbacks callbacks;
nghttp2_nv nva[8190]; nghttp2_nv nva[4086];
size_t i; size_t i;
for(i = 0; i < ARRLEN(nva); ++i) { for(i = 0; i < ARRLEN(nva); ++i) {
...@@ -4302,7 +4302,7 @@ void test_nghttp2_session_pack_headers_with_padding2(void) ...@@ -4302,7 +4302,7 @@ void test_nghttp2_session_pack_headers_with_padding2(void)
accumulator acc; accumulator acc;
my_user_data ud; my_user_data ud;
nghttp2_session_callbacks callbacks; nghttp2_session_callbacks callbacks;
nghttp2_nv nva[16382]; nghttp2_nv nva[8182];
size_t i; size_t i;
for(i = 0; i < ARRLEN(nva); ++i) { for(i = 0; i < ARRLEN(nva); ++i) {
...@@ -4321,8 +4321,7 @@ void test_nghttp2_session_pack_headers_with_padding2(void) ...@@ -4321,8 +4321,7 @@ void test_nghttp2_session_pack_headers_with_padding2(void)
acc.length = 0; acc.length = 0;
ud.acc = &acc; ud.acc = &acc;
/* In this test, padding is laid out across 2 frames: HEADERS and /* In this test, padding is laid out across 2 CONTINUATION frames */
CONTINUATION frames */
nghttp2_session_client_new(&session, &callbacks, &ud); nghttp2_session_client_new(&session, &callbacks, &ud);
nghttp2_session_server_new(&sv_session, &callbacks, &ud); nghttp2_session_server_new(&sv_session, &callbacks, &ud);
...@@ -4351,7 +4350,7 @@ void test_nghttp2_session_pack_headers_with_padding3(void) ...@@ -4351,7 +4350,7 @@ void test_nghttp2_session_pack_headers_with_padding3(void)
accumulator acc; accumulator acc;
my_user_data ud; my_user_data ud;
nghttp2_session_callbacks callbacks; nghttp2_session_callbacks callbacks;
nghttp2_nv nva[8192]; nghttp2_nv nva[9120];
size_t i; size_t i;
for(i = 0; i < ARRLEN(nva); ++i) { for(i = 0; i < ARRLEN(nva); ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment