Fix unittest failure

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-24 23:51:05 +09:00
parent e904842504
commit 9f17bee51d
1 changed files with 3 additions and 2 deletions

View File

@ -195,8 +195,8 @@ void test_http2_copy_norm_headers_to_nva(void)
{
std::vector<nghttp2_nv> nva;
http2::copy_norm_headers_to_nva(nva, headers);
CU_ASSERT(6 == nva.size());
auto ans = std::vector<int>{0, 1, 4, 6, 7, 12};
CU_ASSERT(7 == nva.size());
auto ans = std::vector<int>{0, 1, 4, 5, 6, 7, 12};
for(size_t i = 0; i < ans.size(); ++i) {
check_nv(headers[ans[i]], &nva[i]);
@ -216,6 +216,7 @@ void test_http2_build_http1_headers_from_norm_headers(void)
"Alpha: 0\r\n"
"Bravo: 1\r\n"
"Delta: 4\r\n"
"Expect: 5\r\n"
"Foxtrot: 6\r\n"
"Tango: 7\r\n"
"Te: 8\r\n"