Format mutation reservation test
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m54s
Foundation / checks (checks) (push) Failing after 4m0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 4m58s
Foundation / checks (tsan) (push) Canceled after 3m14s

This commit is contained in:
dingo
2026-10-11 09:01:07 -04:00
parent de4bbec94c
commit 657ab8eb51
+12 -10
View File
@@ -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(),