Skip to content

Commit

Permalink
add a non-full read test
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Sep 15, 2024
1 parent 6854c86 commit c5b48e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/tokio/read_exact_or_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ mod tests {
async fn test_repeated_read_calls() {
let mut r = ZeroReader {
remaining: 10,
max_read_len: 1,
max_read_len: 4,
};
let mut buf: Vec<u8> = vec![1; 10];
let result = read_exact_or_zero(&mut r, &mut buf).await;
Expand Down

0 comments on commit c5b48e2

Please sign in to comment.