Skip to content

Commit 2d35c54

Browse files
niemyjskiejsmith
authored andcommitted
Attempt to fix pathing issue with benchmark .net
1 parent 0bdbc7c commit 2d35c54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Exceptionless.Tests/Utility/ErrorDataReader.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ private static Event GetEvent(string fileName) {
2222
}
2323

2424
public static IEnumerable<Event> GetEvents() {
25-
return Directory.EnumerateFiles(Path.GetFullPath(Path.Combine("..", "..", "..", "ErrorData")), "*.json").Select(GetEvent);
25+
string path = Path.GetFullPath(Path.Combine("..", "..", "..", "ErrorData"));
26+
if (!Directory.Exists(path))
27+
path = Path.GetFullPath(Path.Combine("..", "..", "..", "..", "..", "..", "..", "ErrorData"));
28+
29+
return Directory.EnumerateFiles(path, "*.json").Select(GetEvent);
2630
}
2731
}
2832
}

0 commit comments

Comments
 (0)