diff options
Diffstat (limited to 'tests/all/main.rs')
-rw-r--r-- | tests/all/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/all/main.rs b/tests/all/main.rs index 75f2a29..a021b4c 100644 --- a/tests/all/main.rs +++ b/tests/all/main.rs @@ -23,7 +23,8 @@ pub fn authed_session() -> ssh2::Session { let user = env::var("USER").unwrap(); let socket = socket(); let mut sess = ssh2::Session::new().unwrap(); - sess.handshake(socket).unwrap(); + sess.set_tcp_stream(socket); + sess.handshake().unwrap(); assert!(!sess.authenticated()); { |