Fix remaining mutation offer optional access
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (tsan) (push) Successful in 8m41s
Foundation / checks (postgres) (push) Failing after 19m39s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 22m29s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (tsan) (push) Successful in 8m41s
Foundation / checks (postgres) (push) Failing after 19m39s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 22m29s
This commit is contained in:
@@ -285,8 +285,9 @@ void retained_feeding_earns_a_persistent_mutation_offer() {
|
||||
}
|
||||
CHECK(offered);
|
||||
const auto earned = owner.mutation_offer(life_id);
|
||||
CHECK(earned && *earned && (*earned)->candidates.size() <= cellular_mutation_candidate_count &&
|
||||
!(*earned)->candidates.empty() && owner.lives()[0].mutation.event_index == 1 &&
|
||||
const auto earned_data = earned.value_or(std::nullopt).value_or(evo::biology::MutationOffer{});
|
||||
CHECK(earned && earned_data.candidates.size() <= cellular_mutation_candidate_count &&
|
||||
!earned_data.candidates.empty() && owner.lives()[0].mutation.event_index == 1 &&
|
||||
owner.lives()[0].mutation.offer_tick == owner.tick() &&
|
||||
total_acquired == threshold + owner.lives()[0].mutation.fed_energy_credit_pj);
|
||||
const auto saved = owner.snapshot();
|
||||
|
||||
Reference in New Issue
Block a user