mirror of https://github.com/Sonarr/Sonarr
trying to fix nunit in teamcity.
This commit is contained in:
parent
3162e4864d
commit
ddff5dbad4
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue