From f489b6b50674c658878f4c21e810206bf9605a4c Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 2 Nov 2019 17:59:36 -0400 Subject: [PATCH] Fixed: Disable some flaky tests on MacOS Co-Authored-By: ta264 --- src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs | 9 +++++---- src/NzbDrone.Common.Test/TPLTests/DebouncerFixture.cs | 1 + .../TPLTests/RateLimitServiceFixture.cs | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs b/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs index 54b2a0e01..d6d34e18a 100644 --- a/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs +++ b/src/NzbDrone.Common.Test/CacheTests/CachedFixture.cs @@ -84,6 +84,7 @@ namespace NzbDrone.Common.Test.CacheTests } [Test] + [Platform(Exclude = "MacOsX")] public void should_honor_ttl() { int hitCount = 0; @@ -92,10 +93,10 @@ namespace NzbDrone.Common.Test.CacheTests for (int i = 0; i < 10; i++) { _cachedString.Get("key", () => - { - hitCount++; - return null; - }, TimeSpan.FromMilliseconds(300)); + { + hitCount++; + return null; + }, TimeSpan.FromMilliseconds(300)); Thread.Sleep(100); } diff --git a/src/NzbDrone.Common.Test/TPLTests/DebouncerFixture.cs b/src/NzbDrone.Common.Test/TPLTests/DebouncerFixture.cs index 29e7bb7ec..05a7621a4 100644 --- a/src/NzbDrone.Common.Test/TPLTests/DebouncerFixture.cs +++ b/src/NzbDrone.Common.Test/TPLTests/DebouncerFixture.cs @@ -7,6 +7,7 @@ using NzbDrone.Common.TPL; namespace NzbDrone.Common.Test.TPLTests { [TestFixture] + [Platform(Exclude = "MacOsX")] public class DebouncerFixture { public class Counter diff --git a/src/NzbDrone.Common.Test/TPLTests/RateLimitServiceFixture.cs b/src/NzbDrone.Common.Test/TPLTests/RateLimitServiceFixture.cs index e5ccc8244..539e3a62a 100644 --- a/src/NzbDrone.Common.Test/TPLTests/RateLimitServiceFixture.cs +++ b/src/NzbDrone.Common.Test/TPLTests/RateLimitServiceFixture.cs @@ -10,6 +10,7 @@ using FluentAssertions; namespace NzbDrone.Common.Test.TPLTests { [TestFixture] + [Platform(Exclude = "MacOsX")] public class RateLimitServiceFixture : TestBase { private DateTime _epoch;