Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Oct 29, 2023
1 parent 0ee0199 commit c384768
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tests/test_meta_blk_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,23 +589,26 @@ class VMetaBlkMgrTest : public ::testing::Test {
meta_sub_type subType(mblk->hdr.h.type);
actual_cb_order.push_back(subType);
},
[this](bool success) { actual_on_complete_cb_order.push_back("A"); }, false, {"B", "C"});
[this](bool success) { actual_on_complete_cb_order.push_back("A"); }, false,
std::optional< meta_subtype_vec_t >({"B", "C"}));

m_mbm->register_handler(
"B",
[this](meta_blk* mblk, sisl::byte_view buf, size_t size) {
meta_sub_type subType(mblk->hdr.h.type);
actual_cb_order.push_back(subType);
},
[this](bool success) { actual_on_complete_cb_order.push_back("B"); }, false, {"D", "E"});
[this](bool success) { actual_on_complete_cb_order.push_back("B"); }, false,
std::optional< meta_subtype_vec_t >({"D", "E"}));

m_mbm->register_handler(
"C",
[this](meta_blk* mblk, sisl::byte_view buf, size_t size) {
meta_sub_type subType(mblk->hdr.h.type);
actual_cb_order.push_back(subType);
},
[this](bool success) { actual_on_complete_cb_order.push_back("C"); }, false, {"F"});
[this](bool success) { actual_on_complete_cb_order.push_back("C"); }, false,
std::optional< meta_subtype_vec_t >({"F"}));

m_mbm->register_handler(
"D",
Expand Down

0 comments on commit c384768

Please sign in to comment.