Skip to content

Commit

Permalink
fix: catching test_session test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ycysdf authored Apr 13, 2024
1 parent 58d9274 commit 71b4909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions russh/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ mod channels {
let server_handle = tokio::spawn(run_server(server_session.unwrap().handle()));

let (server_session, client_session) = tokio::join!(server_handle, client_handle);
drop(client_session);
drop(server_session);
drop(client_session.unwrap());
drop(server_session.unwrap());
}

#[tokio::test]
Expand Down Expand Up @@ -453,7 +453,7 @@ mod channels {

let msg = ch.wait().await.unwrap();
if let ChannelMsg::Data { data } = msg {
assert_eq!(data.as_ref(), &b"hey there!"[..]);
assert_eq!(data.as_ref(), &b"hello world!"[..]);
} else {
panic!("Unexpected message {:?}", msg);
}
Expand Down

0 comments on commit 71b4909

Please sign in to comment.