Skip to content

Commit 8cf106b

Browse files
committed
WIP: log trailer-test index on arm failure
1 parent 5b5cf6b commit 8cf106b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/unit/chunk_parsers_test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,17 @@ SEASTAR_TEST_CASE(test_trailer_headers_parsing) {
107107
};
108108

109109
http_chunk_trailer_parser parser;
110+
size_t idx = 0;
110111
for (auto& tset : tests) {
112+
BOOST_TEST_INFO("trailer test idx=" << idx << " msg=" << tset.msg);
111113
parser.init();
112114
BOOST_REQUIRE(parser(tset.buf()).get().has_value());
113115
BOOST_REQUIRE_NE(parser.failed(), tset.parsable);
114116
if (tset.parsable) {
115117
auto heads = parser.get_parsed_headers();
116118
BOOST_REQUIRE_EQUAL(heads[std::move(tset.header_name)], std::move(tset.header_value));
117119
}
120+
++idx;
118121
}
119122
return make_ready_future<>();
120123
}

0 commit comments

Comments
 (0)