Skip to content

Commit

Permalink
updated logging test
Browse files Browse the repository at this point in the history
  • Loading branch information
gbmor committed Sep 4, 2019
1 parent 5d32c8c commit d3e6ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ mod tests {
#[test]
fn init_logs() {
let blank = " ".bytes().collect::<Vec<u8>>();
fs::write("/tmp/clinte.log", &blank).unwrap();
fs::write(&*FILE, &blank).unwrap();
init();

info!("TEST LOG MESSAGE");
let logfile = fs::read_to_string("/tmp/clinte.log").unwrap();
let logfile = fs::read_to_string(&*FILE).unwrap();
assert!(logfile.contains("TEST LOG MESSAGE"));
}
}

0 comments on commit d3e6ef5

Please sign in to comment.