summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWez Furlong <wez@wezfurlong.org>2019-10-20 09:17:56 +0100
committerWez Furlong <wez@wezfurlong.org>2019-10-20 09:36:31 +0100
commit5aa582132909a9159b810ec175b039900862fb39 (patch)
tree1bd211ea526cc77e4e28b3cc3f968c47ec7ec384 /tests
parent7f6623e981f19016541ef4e451c46c39fd9684b2 (diff)
downloadssh2-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.rs10
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());