Skip to content

Commit

Permalink
Fixed a "no change" test on log_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed Jun 16, 2024
1 parent 1839bd4 commit 7df5eec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions copper_log_reader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@ mod tests {

#[test]
fn test_extract_low_level_copper_log() {
let hex_string = "01 01 00 01 0C 05 7A 61 72 6D 61";
let bytes: Vec<u8> = hex_string
.split_whitespace()
.map(|s| u8::from_str_radix(s, 16).expect("Parse error"))
.collect();

let entry = CuLogEntry::new(5);
let bytes = bincode::encode_to_vec(&entry, standard()).unwrap();
let reader = Cursor::new(bytes.as_slice());
full_log_dump(reader, Path::new("test/copper_log_index"));
}
Expand Down

0 comments on commit 7df5eec

Please sign in to comment.