Skip to content

Commit

Permalink
server: fixed test unit
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
  • Loading branch information
cppcoffee committed Jan 15, 2024
1 parent d8557f6 commit 74bbc87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ mod tests {
let incoming = MutableTcpPacket::new(&[0u8; 40]).unwrap();

let mut buffer = vec![0u8; 128];
let mut tcp_packet = MutableTcpPacket::owned(buffer.clone()).unwrap();
let mut tcp_reset = MutableTcpPacket::owned(buffer.clone()).unwrap();

build_tcp_reset(
&mut tcp_packet,
&mut tcp_reset,
&IpAddr::V4(Ipv4Addr::new(1, 1, 1, 1)),
&IpAddr::V4(Ipv4Addr::new(2, 2, 2, 2)),
&incoming,
Expand Down

0 comments on commit 74bbc87

Please sign in to comment.