mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-30 08:40:48 +02:00
Fixed: Disable some flaky tests on MacOS
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
parent
c80a492d76
commit
f489b6b506
3 changed files with 7 additions and 4 deletions
|
|
@ -84,6 +84,7 @@ public void should_store_null()
|
|||
}
|
||||
|
||||
[Test]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public void should_honor_ttl()
|
||||
{
|
||||
int hitCount = 0;
|
||||
|
|
@ -92,10 +93,10 @@ public void should_honor_ttl()
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
namespace NzbDrone.Common.Test.TPLTests
|
||||
{
|
||||
[TestFixture]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public class DebouncerFixture
|
||||
{
|
||||
public class Counter
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
namespace NzbDrone.Common.Test.TPLTests
|
||||
{
|
||||
[TestFixture]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public class RateLimitServiceFixture : TestBase<RateLimitService>
|
||||
{
|
||||
private DateTime _epoch;
|
||||
|
|
|
|||
Loading…
Reference in a new issue