diff --git a/tests/cellular_intent_protocol_tests.cpp b/tests/cellular_intent_protocol_tests.cpp index e389084..a98d7e9 100644 --- a/tests/cellular_intent_protocol_tests.cpp +++ b/tests/cellular_intent_protocol_tests.cpp @@ -136,10 +136,8 @@ void v8_perception_is_bounded_and_canonical() { auto duplicate = perception; duplicate.patches[1] = duplicate.patches[0]; CHECK(encode_session(SessionMessage{duplicate}).empty()); - CHECK( - encode_session( - SessionMessage{CellularPerception{19, 0, {perception.patches[0]}, std::nullopt}}) - .empty()); + const CellularPerception invalid{19, 0, {perception.patches[0]}, std::nullopt}; + CHECK(encode_session(SessionMessage{invalid}).empty()); const CellularPerception cleared{19, 0, {}, std::nullopt}; const auto clear_bytes = encode_session(SessionMessage{cleared}); CHECK(std::get(*decode_session(clear_bytes)) == cleared);