Fixed: Retry flaky tests 3 times before failure

This commit is contained in:
Qstick
2019-08-24 18:01:50 -04:00
parent fbe6143c6f
commit bcc6fae9cc
2 changed files with 3 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ namespace NzbDrone.Common.Test.CacheTests
}
[Test]
[Retry(3)]
public void should_clear_expired_when_they_expire()
{
int hitCount = 0;

View File

@@ -84,6 +84,7 @@ namespace NzbDrone.Common.Test
[Test]
[Platform(Exclude="MacOsX")]
[Retry(3)]
public void exists_should_find_running_process()
{
var process = StartDummyProcess();
@@ -132,6 +133,7 @@ namespace NzbDrone.Common.Test
}
[Test]
[Retry(3)]
public void ToString_on_new_processInfo()
{
Console.WriteLine(new ProcessInfo().ToString());