File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/Exceptionless.Tests/Log Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public virtual void CanWriteToLogFile() {
15
15
log . Info ( "Test" ) ;
16
16
log . Flush ( ) ;
17
17
18
- Assert . True ( LogExists ( ) ) ;
18
+ Assert . True ( LogExists ( log . FilePath ) ) ;
19
19
string contents = log . GetFileContents ( ) ;
20
20
21
21
Assert . EndsWith ( " Info Test\r \n " , contents ) ;
@@ -33,7 +33,7 @@ public virtual void LogFlushTimerWorks() {
33
33
34
34
Thread . Sleep ( 1010 * 3 ) ;
35
35
36
- Assert . True ( LogExists ( ) ) ;
36
+ Assert . True ( LogExists ( log . FilePath ) ) ;
37
37
contents = log . GetFileContents ( ) ;
38
38
39
39
Assert . EndsWith ( " Info Test\r \n " , contents ) ;
Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ protected override FileExceptionlessLog GetLog(string filePath) {
35
35
}
36
36
37
37
protected override bool LogExists ( string path = LOG_FILE ) {
38
- return File . Exists ( path ) ;
38
+ return File . Exists ( Path . GetFullPath ( path ) ) ;
39
39
}
40
40
41
41
protected override void DeleteLog ( string path = LOG_FILE ) {
42
42
if ( LogExists ( path ) )
43
- File . Delete ( path ) ;
43
+ File . Delete ( Path . GetFullPath ( path ) ) ;
44
44
}
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments