diff --git a/tests/cellular_intent_protocol_tests.cpp b/tests/cellular_intent_protocol_tests.cpp index 9411f36..e389084 100644 --- a/tests/cellular_intent_protocol_tests.cpp +++ b/tests/cellular_intent_protocol_tests.cpp @@ -118,7 +118,8 @@ void v7_reliable_action_is_stable_and_strict() { void v8_perception_is_bounded_and_canonical() { const CellularPerception perception{ - 19, 42, {{1'000, 2'000, 3, {4, 5, 6, 7}}, {1'000, 3'000, 8, {9, 10, 11, 12}}}}; + 19, 42, {{1'000, 2'000, 3, {4, 5, 6, 7}}, {1'000, 3'000, 8, {9, 10, 11, 12}}}, + std::nullopt}; const auto bytes = encode_session(SessionMessage{perception}); CHECK(!bytes.empty() && bytes.size() == session_header_bytes + 18 + std::size_t{2} * 48); std::uint16_t version{}; @@ -136,8 +137,10 @@ void v8_perception_is_bounded_and_canonical() { duplicate.patches[1] = duplicate.patches[0]; CHECK(encode_session(SessionMessage{duplicate}).empty()); CHECK( - encode_session(SessionMessage{CellularPerception{19, 0, {perception.patches[0]}}}).empty()); - const CellularPerception cleared{19, 0, {}}; + encode_session( + SessionMessage{CellularPerception{19, 0, {perception.patches[0]}, std::nullopt}}) + .empty()); + const CellularPerception cleared{19, 0, {}, std::nullopt}; const auto clear_bytes = encode_session(SessionMessage{cleared}); CHECK(std::get(*decode_session(clear_bytes)) == cleared); auto oversized = perception; @@ -148,7 +151,7 @@ void v8_perception_is_bounded_and_canonical() { } void v9_perception_carries_only_valid_owner_diagnostics() { - CellularPerception perception{27, 82, {{2'000, 3'000, 17, {4, 5, 6, 7}}}}; + CellularPerception perception{27, 82, {{2'000, 3'000, 17, {4, 5, 6, 7}}}, std::nullopt}; perception.diagnostics = CellularLifeDiagnostics{ 900, {11, 12, 13, 14}, 21, 8, CellularMovementResult::moved, CellularIntakeResult::acquired, true}; @@ -174,7 +177,7 @@ void v9_perception_carries_only_valid_owner_diagnostics() { missing.diagnostics.reset(); CHECK(encode_session(SessionMessage{missing}, session_protocol_v9).empty()); CHECK(encode_session(SessionMessage{perception}, session_protocol_v8).empty()); - auto cleared = CellularPerception{27, 0, {}}; + auto cleared = CellularPerception{27, 0, {}, std::nullopt}; const auto clear_bytes = encode_session(SessionMessage{cleared}, session_protocol_v9); CHECK(!clear_bytes.empty()); CHECK(std::get(*decode_session(clear_bytes)) == cleared); diff --git a/tests/quic_sessions.cpp b/tests/quic_sessions.cpp index c180e3f..09dce6b 100644 --- a/tests/quic_sessions.cpp +++ b/tests/quic_sessions.cpp @@ -694,7 +694,7 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) { action_client->view()->organisms.front().id == 901); CHECK(action_client->set_interest({1, 0, 0, 2})); - CellularPerception perception{101, 901, {{1'000, 2'000, 3, {4, 5, 6, 7}}}}; + CellularPerception perception{101, 901, {{1'000, 2'000, 3, {4, 5, 6, 7}}}, std::nullopt}; CellularLifeDiagnostics diagnostics; diagnostics.reserve_energy_pj = 88; diagnostics.reserve_matter_fg = {9, 10, 11, 12};