From 0fde3cd059fc140cf6f3a0852b254a545a2cbffa Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Fri, 22 Dec 2023 14:25:00 -0800 Subject: [PATCH] HACKITY HACK --- quinn-udp/tests/tests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quinn-udp/tests/tests.rs b/quinn-udp/tests/tests.rs index 2b690a4723..088b73febf 100644 --- a/quinn-udp/tests/tests.rs +++ b/quinn-udp/tests/tests.rs @@ -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();