diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-04-02 09:49:25 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-02 09:49:25 -0700 |
commit | 77456e87ba3888d7a9fc62f3e87aeb3a09098f60 (patch) | |
tree | 0cdea4f6cbd7a02c9bc450227abcb1ed53454ff7 /tests | |
parent | 86c56ecb1d2c3d784020b25c0b00bc29fa5c0a66 (diff) | |
download | ssh2-rs-77456e87ba3888d7a9fc62f3e87aeb3a09098f60.zip |
Update to rust master
Diffstat (limited to 'tests')
-rw-r--r-- | tests/all.rs | 1 | ||||
-rw-r--r-- | tests/sftp.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/all.rs b/tests/all.rs index 5930a8f..6ff6c5e 100644 --- a/tests/all.rs +++ b/tests/all.rs @@ -1,5 +1,4 @@ #![deny(warnings)] -#![feature(convert)] extern crate ssh2; extern crate libc; diff --git a/tests/sftp.rs b/tests/sftp.rs index b28e549..595fdec 100644 --- a/tests/sftp.rs +++ b/tests/sftp.rs @@ -19,8 +19,8 @@ fn ops() { sftp.opendir(&td.path().join("bar")).unwrap(); let mut foo = sftp.open(&td.path().join("foo")).unwrap(); sftp.mkdir(&td.path().join("bar2"), 0o755).unwrap(); - assert_eq!(fs::metadata(&td.path().join("bar2")).map(|m| m.is_dir()), - Ok(true)); + assert!(fs::metadata(&td.path().join("bar2")).map(|m| m.is_dir()) + .unwrap_or(false)); sftp.rmdir(&td.path().join("bar2")).unwrap(); sftp.create(&td.path().join("foo5")).unwrap().write_all(b"foo").unwrap(); |