Skip to content

Commit

Permalink
Try UnixStream::connect
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Sep 10, 2024
1 parent 91afe0c commit a3beab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/openssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ async fn remote_socket_forward() {
.unwrap();

eprintln!("Trying to connect again");
assert_eq!(output.read(&mut buffer).await.unwrap(), 0);
let e = UnixStream::connect(&unix_socket).await.unwrap_err();
assert_eq!(e.kind(), io::ErrorKind::ConnectionRefused);

drop(output);
drop(output_listener);
Expand Down

0 comments on commit a3beab4

Please sign in to comment.