Make sure something appears in the trace file before trying to read it.

pull/2984/head
Taloth Saldono 6 years ago
parent 29b4a83d93
commit 6b405700ec

@ -15,10 +15,12 @@ namespace NzbDrone.Integration.Test
config.LogLevel = "Trace"; config.LogLevel = "Trace";
HostConfig.Put(config); HostConfig.Put(config);
var resultGet = Series.All();
var logFile = Path.Combine(_runner.AppData, "logs", "sonarr.trace.txt"); var logFile = Path.Combine(_runner.AppData, "logs", "sonarr.trace.txt");
var logLines = File.ReadAllLines(logFile); var logLines = File.ReadAllLines(logFile);
var result = Series.InvalidPost(new Api.Series.SeriesResource()); var resultPost = Series.InvalidPost(new Api.Series.SeriesResource());
logLines = File.ReadAllLines(logFile).Skip(logLines.Length).ToArray(); logLines = File.ReadAllLines(logFile).Skip(logLines.Length).ToArray();

Loading…
Cancel
Save