diff --git a/NzbDrone.Test.Common/LoggingTest.cs b/NzbDrone.Test.Common/LoggingTest.cs index 0e3961df6..d5320b008 100644 --- a/NzbDrone.Test.Common/LoggingTest.cs +++ b/NzbDrone.Test.Common/LoggingTest.cs @@ -41,7 +41,7 @@ namespace NzbDrone.Test.Common [TearDown] public void LoggingDownBase() { - if (TestContext.CurrentContext.Result.Status == TestStatus.Passed) + if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error) { ExceptionVerification.AssertNoUnexcpectedLogs(); } diff --git a/NzbDrone.Test.Common/TestBase.cs b/NzbDrone.Test.Common/TestBase.cs index 1f8231096..10764ce17 100644 --- a/NzbDrone.Test.Common/TestBase.cs +++ b/NzbDrone.Test.Common/TestBase.cs @@ -103,7 +103,7 @@ namespace NzbDrone.Test.Common { } - if (TestContext.CurrentContext.Result.Status == TestStatus.Failed) + if (TestContext.CurrentContext.Result.State == TestState.Failure || TestContext.CurrentContext.Result.State == TestState.Error) { var testName = TestContext.CurrentContext.Test.Name.ToLower();