From bcc6fae9cc6b47f3a186b34ae583461bc0f24e2f Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 24 Aug 2019 18:01:50 -0400 Subject: [PATCH] Fixed: Retry flaky tests 3 times before failure --- src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs | 1 + src/NzbDrone.Common.Test/ProcessProviderFixture.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs b/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs index cee6436fb..1ad1f1a7f 100644 --- a/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs +++ b/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs @@ -104,6 +104,7 @@ namespace NzbDrone.Common.Test.CacheTests } [Test] + [Retry(3)] public void should_clear_expired_when_they_expire() { int hitCount = 0; diff --git a/src/NzbDrone.Common.Test/ProcessProviderFixture.cs b/src/NzbDrone.Common.Test/ProcessProviderFixture.cs index bf79447bc..7f4e5b7a9 100644 --- a/src/NzbDrone.Common.Test/ProcessProviderFixture.cs +++ b/src/NzbDrone.Common.Test/ProcessProviderFixture.cs @@ -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());