summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-09-04 14:03:13 -0400
committerBen Morrison <ben@gbmor.dev>2019-09-04 14:03:13 -0400
commitd3e6ef557fc457dffaa0a62edcf48c156df3bce3 (patch)
tree50d7c08fb1a94bbbcde54c9a947d595e6442c1b0 /src
parent5d32c8ccd1b2d544771363ef419d89ec4f56c924 (diff)
downloadclinte-d3e6ef557fc457dffaa0a62edcf48c156df3bce3.tar.gz
updated logging test v0.4.0
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"));
     }
 }
9bb2eb59487d1012f837bd07ec336f5'>1ead3562 ^
21c27706 ^




d5f89e0f ^
1ead3562 ^
d5f89e0f ^

acc4792d ^
d5f89e0f ^


1ead3562 ^
d5f89e0f ^



a796831f ^

8619c618 ^
d18d1d3d ^




a796831f ^



a796831f ^

b24eb476 ^
a796831f ^
1f7e3c05 ^
79eef536 ^
21c27706 ^
79eef536 ^
a796831f ^



780b2ce1 ^
a796831f ^




a796831f ^

2d713167 ^



a796831f ^




2d713167 ^



a796831f ^



2d713167 ^



a796831f ^




d5f89e0f ^
a796831f ^



555d95c1 ^
4ad0f652 ^
a796831f ^


c4e143d6 ^

9dcbec39 ^
c4e143d6 ^


9dcbec39 ^
c4e143d6 ^


66abe7c1 ^






ce2e604e ^


c4e143d6 ^
08cf048f ^
79eef536 ^
b74443e5 ^
eb4eecea ^
66abe7c1 ^






ce2e604e ^
a17f9186 ^
a796831f ^
a796831f ^



79eef536 ^
a796831f ^
66abe7c1 ^




a072f674 ^
eb4eecea ^
a072f674 ^

a796831f ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151