Fixed: Retry flaky tests 3 times before failure

pull/6/head
Qstick 5 years ago
parent fbe6143c6f
commit bcc6fae9cc

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

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

Loading…
Cancel
Save