Fix unittest failure
This commit is contained in:
parent
e904842504
commit
9f17bee51d
|
@ -195,8 +195,8 @@ void test_http2_copy_norm_headers_to_nva(void)
|
||||||
{
|
{
|
||||||
std::vector<nghttp2_nv> nva;
|
std::vector<nghttp2_nv> nva;
|
||||||
http2::copy_norm_headers_to_nva(nva, headers);
|
http2::copy_norm_headers_to_nva(nva, headers);
|
||||||
CU_ASSERT(6 == nva.size());
|
CU_ASSERT(7 == nva.size());
|
||||||
auto ans = std::vector<int>{0, 1, 4, 6, 7, 12};
|
auto ans = std::vector<int>{0, 1, 4, 5, 6, 7, 12};
|
||||||
for(size_t i = 0; i < ans.size(); ++i) {
|
for(size_t i = 0; i < ans.size(); ++i) {
|
||||||
check_nv(headers[ans[i]], &nva[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"
|
"Alpha: 0\r\n"
|
||||||
"Bravo: 1\r\n"
|
"Bravo: 1\r\n"
|
||||||
"Delta: 4\r\n"
|
"Delta: 4\r\n"
|
||||||
|
"Expect: 5\r\n"
|
||||||
"Foxtrot: 6\r\n"
|
"Foxtrot: 6\r\n"
|
||||||
"Tango: 7\r\n"
|
"Tango: 7\r\n"
|
||||||
"Te: 8\r\n"
|
"Te: 8\r\n"
|
||||||
|
|
Loading…
Reference in New Issue