Skip to content

Commit

Permalink
Fix import error in Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d2weber authored Sep 23, 2024
1 parent 2d7b48e commit 8f5e3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3072,7 +3072,7 @@ mod test {
ack_number: Some(REMOTE_SEQ + 1),
max_seg_size: Some(BASE_MSS),
window_scale: Some(*shift_amt),
window_len: cmp::min(*buffer_size, 65535) as u16,
window_len: u16::try_from(*buffer_size).unwrap_or(u16::MAX),
..RECV_TEMPL
}]
);
Expand Down Expand Up @@ -3750,7 +3750,7 @@ mod test {
ack_number: None,
max_seg_size: Some(BASE_MSS),
window_scale: Some(*shift_amt),
window_len: cmp::min(*buffer_size, 65535) as u16,
window_len: u16::try_from(*buffer_size).unwrap_or(u16::MAX),
sack_permitted: true,
..RECV_TEMPL
}]
Expand Down

0 comments on commit 8f5e3b4

Please sign in to comment.