Skip to content

Commit

Permalink
HACKITY HACK
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Dec 22, 2023
1 parent 8fa1d74 commit 0fde3cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quinn-udp/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ fn test_send_recv(send: &Socket, recv: &Socket, transmit: Transmit) {
let send_state = UdpSocketState::new((&send).into()).unwrap();
let recv_state = UdpSocketState::new((&recv).into()).unwrap();

// Reverse non-blocking flag set by `UdpSocketState` to make the test non-racy
recv.set_nonblocking(false).unwrap();

send_state
.send((&send).into(), slice::from_ref(&transmit))
.unwrap();
Expand Down

0 comments on commit 0fde3cd

Please sign in to comment.