diff --git a/src/common.rs b/src/common.rs index d00d01b55..296b83d28 100644 --- a/src/common.rs +++ b/src/common.rs @@ -275,7 +275,7 @@ async fn test_nat_type_() -> ResultType { .await?; addr = socket.local_addr(); socket.send(&msg_out).await?; - if let Some(Ok(bytes)) = socket.next_timeout(3000).await { + if let Some(Ok(bytes)) = socket.next_timeout(RENDEZVOUS_TIMEOUT).await { if let Ok(msg_in) = RendezvousMessage::parse_from_bytes(&bytes) { if let Some(rendezvous_message::Union::test_nat_response(tnr)) = msg_in.union { if i == 0 {