ADR 0127
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (tsan) (push) Successful in 10m11s
Foundation / checks (client) (push) Failing after 14m26s
Foundation / checks (network) (push) Successful in 18m54s
Foundation / checks (checks) (push) Successful in 42m9s
Foundation / checks (postgres) (push) Successful in 43m51s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (tsan) (push) Successful in 10m11s
Foundation / checks (client) (push) Failing after 14m26s
Foundation / checks (network) (push) Successful in 18m54s
Foundation / checks (checks) (push) Successful in 42m9s
Foundation / checks (postgres) (push) Successful in 43m51s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -875,6 +875,27 @@ void cellular_death_is_final_and_account_restarts() {
|
||||
// While the second life lives, a third request is an existing-life refusal.
|
||||
CHECK(host->create_primitive_life(account, control->generation, 13).result ==
|
||||
evo::network::PrimitiveLifeResult::existing_life);
|
||||
// A fresh account still cannot create energy from an exhausted nursery. The
|
||||
// expected refusal must not stall the living cell's tick or stay pending forever.
|
||||
const auto newcomer = filled<16>(0x95);
|
||||
const auto newcomer_control = claim_account_control(
|
||||
*runtime, key, checked_value(host->authority()), newcomer, 1, 2, 60'000ms, 5s);
|
||||
CHECK(newcomer_control);
|
||||
CHECK(host->create_primitive_life(newcomer, newcomer_control->generation, 21).result ==
|
||||
evo::network::PrimitiveLifeResult::pending);
|
||||
const auto before_tick = host->state()->tick();
|
||||
const std::array refusals{CellularBirthRefusal{host->queued_births().front(),
|
||||
CellularLivesError::insufficient_funding}};
|
||||
CellularBatch continued;
|
||||
continued.header = header(1);
|
||||
continued.ticks.push_back({{{second, {}}}, {}, {}});
|
||||
CHECK(host->publish(continued));
|
||||
host->refuse_births(refusals);
|
||||
CHECK(host->state()->tick() == before_tick + 1 && host->queued_births().empty());
|
||||
CHECK(host->query_primitive_life(newcomer, newcomer_control->generation, 21).result ==
|
||||
evo::network::PrimitiveLifeResult::insufficient_funding);
|
||||
CHECK(host->create_primitive_life(newcomer, newcomer_control->generation, 21).result ==
|
||||
evo::network::PrimitiveLifeResult::insufficient_funding);
|
||||
const auto snapshot = host->state()->snapshot();
|
||||
host->drain();
|
||||
host.reset();
|
||||
|
||||
Reference in New Issue
Block a user