Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Dec 20, 2024
1 parent 849d60b commit 8724d4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/src/sans_io/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,10 +1111,13 @@ mod tests {
let mut reader = LinearReader::new_with_options(
LinearReaderOptions::default().with_prevalidate_chunk_crcs(true),
);
let mut message_count = 0;
while let Some(action) = reader.next_action() {
match action.expect("failed to get next action") {
ReadAction::GetRecord { data: _, opcode } => {
print!("{},", opcode);
if opcode == op::MESSAGE {
message_count += 1;
}
}
ReadAction::NeedMore(_) => {
let read = f
Expand All @@ -1124,5 +1127,6 @@ mod tests {
}
}
}
assert_eq!(message_count, 199);
}
}

0 comments on commit 8724d4b

Please sign in to comment.