summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logging.rs4
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"));
     }
 }