commit | b83c8ed0ce86ff90a09437ea719943f366e8c78f | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Wed Feb 21 01:01:59 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 21 01:01:59 2024 +0000 |
tree | eedde8749f255a07eb7972de92ff5b2ae4e1534b | |
parent | 36b6a7ddb0c28b66a6d3420b99104a5869f37363 [diff] |
pw_transfer: Fix integration test START packet issue The proxy in pw_transfer's integration tests were receiving multiple START packets, resulting in incorrect behavior in tests. This occurred due to an assumption that all RPC packets contained transfer chunks and attempting to decode them. An empty RPC payload resulted in a default (zero-valued) chunk, which was interpreted as a START chunk for legacy protocol compatibility. This fixes the issue by only considering RPC packets which actually have a payload. Bug: 322497491 Change-Id: I4c1e0806f9de592226a20ebbb7676ed76edaf01f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/192755 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Alexei Frolov <frolv@google.com> Reviewed-by: Jordan Brauer <jtbrauer@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.