diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-10-20 09:17:56 +0100 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-10-20 09:36:31 +0100 |
commit | 5aa582132909a9159b810ec175b039900862fb39 (patch) | |
tree | 1bd211ea526cc77e4e28b3cc3f968c47ec7ec384 /tests | |
parent | 7f6623e981f19016541ef4e451c46c39fd9684b2 (diff) | |
download | ssh2-rs-5aa582132909a9159b810ec175b039900862fb39.zip |
Make Session be `Send` again
Refs: https://github.com/alexcrichton/ssh2-rs/issues/137
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()); |