Browse Source

Fix tests

master
Adrian Heine 2 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]
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);
}

2
tests/setup.rs

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

4
tests/storage.rs

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

Loading…
Cancel
Save