Skip to content

Commit 95070d0

Browse files
committed
time: sleep 100ms to GET first
1 parent 688fc38 commit 95070d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/piping_server.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::convert::Infallible;
99
use piping_server::piping_server::PipingServer;
1010
use piping_server::req_res_handler::req_res_handler;
1111
use std::net::SocketAddr;
12+
use std::time;
1213

1314
type BoxError = Box<dyn std::error::Error + Send + Sync>;
1415

@@ -496,6 +497,7 @@ async fn f() -> Result<(), BoxError> {
496497
Ok::<_, BoxError>(get_res)
497498
}
498499
});
500+
tokio::time::sleep(time::Duration::from_millis(100)).await;
499501

500502
let send_body_str = "this is a content";
501503
let send_req = hyper::Request::builder()

0 commit comments

Comments
 (0)