mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
@@ -7,7 +7,7 @@ using NzbDrone.Common.TPL;
|
||||
namespace NzbDrone.Common.Test.TPLTests
|
||||
{
|
||||
[TestFixture]
|
||||
[Platform(Exclude="MacOsX")]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public class DebouncerFixture
|
||||
{
|
||||
public class Counter
|
||||
@@ -20,7 +20,6 @@ namespace NzbDrone.Common.Test.TPLTests
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
[Retry(3)]
|
||||
public void should_hold_the_call_for_debounce_duration()
|
||||
@@ -34,11 +33,9 @@ namespace NzbDrone.Common.Test.TPLTests
|
||||
|
||||
counter.Count.Should().Be(0);
|
||||
|
||||
|
||||
Thread.Sleep(100);
|
||||
|
||||
counter.Count.Should().Be(1);
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -54,7 +51,6 @@ namespace NzbDrone.Common.Test.TPLTests
|
||||
|
||||
counter.Count.Should().Be(0);
|
||||
|
||||
|
||||
Thread.Sleep(200);
|
||||
|
||||
debounceFunction.Execute();
|
||||
@@ -64,7 +60,6 @@ namespace NzbDrone.Common.Test.TPLTests
|
||||
Thread.Sleep(200);
|
||||
|
||||
counter.Count.Should().Be(2);
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Diagnostics;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Cache;
|
||||
using NzbDrone.Common.TPL;
|
||||
using NzbDrone.Test.Common;
|
||||
using FluentAssertions;
|
||||
|
||||
namespace NzbDrone.Common.Test.TPLTests
|
||||
{
|
||||
[TestFixture]
|
||||
[Platform(Exclude="MacOsX")]
|
||||
[Platform(Exclude = "MacOsX")]
|
||||
public class RateLimitServiceFixture : TestBase<RateLimitService>
|
||||
{
|
||||
private DateTime _epoch;
|
||||
|
||||
Reference in New Issue
Block a user