|
|
@ -241,13 +241,6 @@ struct packet_info_deserialization_test : public test_scaffold { |
|
|
|
log_segment("INFO", "Item controlled"); |
|
|
|
|
|
|
|
auto [value, state] = gp::read_cbor<packet_info>(serialized.as_buffer(), allocator); |
|
|
|
|
|
|
|
gp_config::assertion(value.has_value(), "deserialization failed"); |
|
|
|
gp_config::assertion(!state.size(), "unprocessed state remains"); |
|
|
|
gp_config::assertion(value.value().sequence == item.sequence, "comparison failed step 1"); |
|
|
|
gp_config::assertion(value.value().attempts == item.attempts, "comparison failed step 2"); |
|
|
|
gp_config::assertion(value.value().co_id == item.co_id, "comparison failed step 3"); |
|
|
|
gp_config::assertion(value.value().data == item.data, "comparison failed step 4"); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
}; |
|
|
|