Fixed: Disable some flaky tests on MacOS

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
pull/3861/head
Qstick 5 years ago
parent c80a492d76
commit f489b6b506

@ -84,6 +84,7 @@ namespace NzbDrone.Common.Test.CacheTests
} }
[Test] [Test]
[Platform(Exclude = "MacOsX")]
public void should_honor_ttl() public void should_honor_ttl()
{ {
int hitCount = 0; int hitCount = 0;
@ -92,10 +93,10 @@ namespace NzbDrone.Common.Test.CacheTests
for (int i = 0; i < 10; i++) for (int i = 0; i < 10; i++)
{ {
_cachedString.Get("key", () => _cachedString.Get("key", () =>
{ {
hitCount++; hitCount++;
return null; return null;
}, TimeSpan.FromMilliseconds(300)); }, TimeSpan.FromMilliseconds(300));
Thread.Sleep(100); Thread.Sleep(100);
} }

@ -7,6 +7,7 @@ using NzbDrone.Common.TPL;
namespace NzbDrone.Common.Test.TPLTests namespace NzbDrone.Common.Test.TPLTests
{ {
[TestFixture] [TestFixture]
[Platform(Exclude = "MacOsX")]
public class DebouncerFixture public class DebouncerFixture
{ {
public class Counter public class Counter

@ -10,6 +10,7 @@ using FluentAssertions;
namespace NzbDrone.Common.Test.TPLTests namespace NzbDrone.Common.Test.TPLTests
{ {
[TestFixture] [TestFixture]
[Platform(Exclude = "MacOsX")]
public class RateLimitServiceFixture : TestBase<RateLimitService> public class RateLimitServiceFixture : TestBase<RateLimitService>
{ {
private DateTime _epoch; private DateTime _epoch;

Loading…
Cancel
Save