From d3e6ef557fc457dffaa0a62edcf48c156df3bce3 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 4 Sep 2019 14:03:13 -0400 Subject: updated logging test --- src/logging.rs | 4 ++-- 1 file 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::>(); - 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")); } } -- cgit 1.4.1-2-gfad0