Browse Source

Fix tests

master
Adrian Heine 4 years ago
parent
commit
907fbf95db
  1. 2
      tests/file.rs
  2. 2
      tests/setup.rs
  3. 4
      tests/storage.rs

2
tests/file.rs

@ -78,7 +78,7 @@ fn no_file() {
#[test] #[test]
fn may_not_read_file() { fn may_not_read_file() {
let symbol = get_symbol(&Path::new("/etc/shadow"));
let symbol = FileSymbol::new(Path::new("/etc/shadow"), "");
assert_eq!(symbol.target_reached().is_err(), true); assert_eq!(symbol.target_reached().is_err(), true);
} }

2
tests/setup.rs

@ -60,7 +60,7 @@ fn can_create_an_acme_cert() {
.unwrap(), .unwrap(),
"/etc/ssl/local_certs/somehost.crt", "/etc/ssl/local_certs/somehost.crt",
); );
assert_eq!(*count.borrow(), 15);
assert_eq!(*count.borrow(), 19);
} }
#[test] #[test]

4
tests/storage.rs

@ -104,12 +104,12 @@ fn empty_storage() {
assert!(storage.read_filename().is_err()); assert!(storage.read_filename().is_err());
assert_eq!( assert_eq!(
storage.read_filename().unwrap_err().to_string(), storage.read_filename().unwrap_err().to_string(),
"entity not found"
"No such file or directory (os error 2)"
); );
assert!(storage.recent_date().is_err()); assert!(storage.recent_date().is_err());
assert_eq!( assert_eq!(
storage.recent_date().unwrap_err().to_string(), storage.recent_date().unwrap_err().to_string(),
"entity not found"
"No such file or directory (os error 2)"
); );
} }

Loading…
Cancel
Save