~gbmor/clinte

d3e6ef557fc457dffaa0a62edcf48c156df3bce3 — Ben Morrison 1 year, 10 months ago 5d32c8c v0.4.0
updated logging test
1 files changed, 2 insertions(+), 2 deletions(-)

M src/logging.rs
M src/logging.rs => src/logging.rs +2 -2
@@ 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"));
    }
}