diff --git a/tests/cellular_session_batch_tests.cpp b/tests/cellular_session_batch_tests.cpp index ea5ed66..b99a697 100644 --- a/tests/cellular_session_batch_tests.cpp +++ b/tests/cellular_session_batch_tests.cpp @@ -156,11 +156,11 @@ void durable_mutation_reservations_bind_to_the_exact_offer() { {1'000'000'000'000ULL}, {1'000'000'000'000ULL}, {1'000'000'000'000ULL}}}}; - auto habitat = biology::CellularHabitat::create( - {93, 1, 1, 1'000, 1'000, {{{0, 0}, 29, stock}}}); + auto habitat = + biology::CellularHabitat::create({93, 1, 1, 1'000, 1'000, {{{0, 0}, 29, stock}}}); CHECK(habitat); - auto created = CellularLives::create(**primitive, std::move(*habitat), - {{1'000, 1'000}, 1, 293'150}); + auto created = + CellularLives::create(**primitive, std::move(*habitat), {{1'000, 1'000}, 1, 293'150}); CHECK(created && (*created)->lives().size() == 1); auto& owner = **created; const auto life_id = owner.lives()[0].identity.life; @@ -209,13 +209,15 @@ void durable_mutation_reservations_bind_to_the_exact_offer() { const std::array reservations{reservation}; CHECK(builder->append(action_tick, baseline, {}, {}, reservations)); const CellularMutationActionRecord expected_action{ - live.account, reservation.action_id, action_tick, + live.account, + reservation.action_id, + action_tick, {life_id, live.mutation.event_index, live.mutation.offer_tick, candidate.operator_id}}; - CHECK(builder->batch().ticks.back().mutations == - std::vector{CellularMutationSelection{life_id, live.mutation.event_index, - live.mutation.offer_tick, - reservation.successor_identity, - candidate.operator_id}} && + const CellularMutationSelection expected_selection{ + life_id, live.mutation.event_index, live.mutation.offer_tick, + reservation.successor_identity, candidate.operator_id}; + CHECK(builder->batch().ticks.back().mutations.size() == 1 && + builder->batch().ticks.back().mutations.front() == expected_selection && builder->mutation_actions().size() == 1 && builder->mutation_actions().front() == expected_action && match_cellular_mutation_actions_to_trace(**revision_owner, builder->batch(),