diff --git a/async-ssh2-lite/tests/integration_tests/remote_port_forwarding.rs b/async-ssh2-lite/tests/integration_tests/remote_port_forwarding.rs index af09543..9512a19 100644 --- a/async-ssh2-lite/tests/integration_tests/remote_port_forwarding.rs +++ b/async-ssh2-lite/tests/integration_tests/remote_port_forwarding.rs @@ -29,7 +29,7 @@ async fn simple_with_tokio() -> Result<(), Box> { let ssh_server_connect_addr = get_connect_addr()?; - let remote_port = portpicker::pick_unused_port().unwrap(); + let remote_port = http_server_listen_addr.port() + 1; // let server_task: tokio::task::JoinHandle>> = @@ -96,6 +96,9 @@ async fn simple_with_tokio() -> Result<(), Box> { Ok(()) }); + // + tokio::time::sleep(tokio::time::Duration::from_millis(200)).await; + // let mut session = AsyncSession::::connect(ssh_server_connect_addr, None)