From ae7469ae6b0da0836173bcae1b95be87a293ccf6 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 10 Jan 2023 14:38:31 +0000 Subject: [PATCH] test/crimson: add event-type-checking next_round2() to BackfillFixture Signed-off-by: Radoslaw Zarzynski --- src/test/crimson/test_backfill.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/crimson/test_backfill.cc b/src/test/crimson/test_backfill.cc index 1ce9b42ad38..bf958cd5ae7 100644 --- a/src/test/crimson/test_backfill.cc +++ b/src/test/crimson/test_backfill.cc @@ -154,6 +154,14 @@ public: } } + template + void next_round2() { + ceph_assert(events_to_dispatch.size()); + ceph_assert(typeid(*events_to_dispatch.front()) == typeid(EventT)); + backfill_state.process_event(std::move(events_to_dispatch.front())); + events_to_dispatch.pop_front(); + } + void next_till_done() { while (!events_to_dispatch.empty()) { next_round(); -- 2.47.3