Skip to content

Commit ba59569

Browse files
committed
tests: common: Require lengths match in ExpectedRespChannel
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
1 parent 016c0e7 commit ba59569

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl mctp::AsyncRespChannel for ExpectedRespChannel<'_> {
105105
"Failed emptiness consensus:\n\tExpected: {:02x?}\n\tFound: {bufs:02x?}",
106106
self.resp
107107
);
108+
assert_eq!(bufs.iter().map(|b| b.len()).sum::<usize>(), self.resp.len());
108109
assert!(
109110
core::iter::zip(self.resp, bufs.iter().flat_map(|b| b.iter())).all(|(e, f)| e == f),
110111
"Expected: {:02x?}, found: {:02x?}",

0 commit comments

Comments
 (0)