Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! net: add a somke test for quickack
  • Loading branch information
ADD-SP committed Jul 30, 2025
commit 42e203f3aed4bd74a4a674a211067da14c81c61c
6 changes: 4 additions & 2 deletions tokio/tests/net_quickack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
))]
#![cfg_attr(miri, ignore)] // No `socket` in miri.

use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::net::TcpListener;
use tokio::net::TcpStream;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::sync::oneshot;

#[tokio::test]
Expand Down Expand Up @@ -47,7 +47,9 @@ async fn socket_works_with_quickack() {

let port = rx_port.await.unwrap();
let client = tokio::spawn(async move {
let mut stream = TcpStream::connect(format!("127.0.0.1:{port}")).await.unwrap();
let mut stream = TcpStream::connect(format!("127.0.0.1:{port}"))
.await
.unwrap();
stream.set_quickack(true).unwrap();
assert!(stream.quickack().unwrap());

Expand Down
Loading