diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/all/session.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/all/session.rs b/tests/all/session.rs index 93b0a2e..484610f 100644 --- a/tests/all/session.rs +++ b/tests/all/session.rs @@ -7,6 +7,16 @@ use tempdir::TempDir; use ssh2::{HashType, KeyboardInteractivePrompt, MethodType, Prompt, Session}; #[test] +fn session_is_send() { + fn must_be_send<T: Send>(_: &T) -> bool { + true + } + + let sess = Session::new().unwrap(); + assert!(must_be_send(&sess)); +} + +#[test] fn smoke() { let sess = Session::new().unwrap(); assert!(sess.banner_bytes().is_none()); |