Fixed 503 Http errors not marking the test as ignored.

This commit is contained in:
kay.one 2012-01-22 19:01:16 -08:00
commit 0d582f12fb
2 changed files with 26 additions and 33 deletions

View file

@ -86,6 +86,17 @@ namespace NzbDrone.Test.Common
}
}
public static void MarkInconclusive(string text)
{
var inconclusiveLogs = _logs.Where(l => l.Message.Contains(text)).ToList();
if (inconclusiveLogs.Count != 0)
{
inconclusiveLogs.ForEach(c => _logs.Remove(c));
Assert.Inconclusive(GetLogsString(inconclusiveLogs));
}
}
private static void Excpected(LogLevel level, int count)
{
var levelLogs = _logs.Where(l => l.Level == level).ToList();