Fix tests

This commit is contained in:
Sosthène Guédon
2024-06-19 14:31:28 +02:00
committed by sosthene-nitrokey
parent 13dec8a674
commit 5dede6608e
+1 -3
View File
@@ -393,7 +393,6 @@ impl<'de, const N: usize> Deserialize<'de> for Bytes<N> {
#[cfg(feature = "cbor")]
mod tests {
use super::*;
use heapless::consts;
#[test]
fn test_client_data_hash() {
@@ -402,8 +401,7 @@ mod tests {
0x44, 0x45, 0x46,
];
let client_data_hash: Bytes<consts::U32> =
serde_cbor::de::from_mut_slice(&mut minimal).unwrap();
let client_data_hash: Bytes<17> = serde_cbor::de::from_mut_slice(&mut minimal).unwrap();
assert_eq!(client_data_hash, b"1234567890ABCDEF");
}