diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-09-04 14:03:13 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-09-04 14:03:13 -0400 |
commit | d3e6ef557fc457dffaa0a62edcf48c156df3bce3 (patch) | |
tree | 50d7c08fb1a94bbbcde54c9a947d595e6442c1b0 /src | |
parent | 5d32c8ccd1b2d544771363ef419d89ec4f56c924 (diff) | |
download | clinte-d3e6ef557fc457dffaa0a62edcf48c156df3bce3.tar.gz |
updated logging test v0.4.0
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.rs b/src/logging.rs index c489b63..d138a6c 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -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")); } } |