From cc4606a454820e91aef9da2835bd55efa5e93401 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Tue, 10 Dec 2024 00:15:20 +0800 Subject: [PATCH] chore: tunnel test wait 5s for server starts --- tests/tunnel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tunnel.rs b/tests/tunnel.rs index 435b7ac9..c4f5a10c 100644 --- a/tests/tunnel.rs +++ b/tests/tunnel.rs @@ -67,7 +67,7 @@ async fn tcp_tunnel() { tokio::spawn(run_local(local_config)); tokio::spawn(run_server(server_config)); - time::sleep(Duration::from_secs(1)).await; + time::sleep(Duration::from_secs(5)).await; // Connect it directly, because it is now established a TCP tunnel with detectportal.firefox.com let mut stream = TcpStream::connect(("127.0.0.1", local_port)).await.unwrap(); @@ -148,7 +148,7 @@ async fn udp_tunnel() { tokio::spawn(run_local(local_config)); tokio::spawn(run_server(server_config)); - time::sleep(Duration::from_secs(1)).await; + time::sleep(Duration::from_secs(5)).await; const MESSAGE: &[u8] = b"hello shadowsocks";