|
|
@ -21,6 +21,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
[Retry(3)]
|
|
|
|
public void should_hold_the_call_for_debounce_duration()
|
|
|
|
public void should_hold_the_call_for_debounce_duration()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var counter = new Counter();
|
|
|
|
var counter = new Counter();
|
|
|
@ -40,6 +41,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
[Retry(3)]
|
|
|
|
public void should_throttle_calls()
|
|
|
|
public void should_throttle_calls()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var counter = new Counter();
|
|
|
|
var counter = new Counter();
|
|
|
@ -65,6 +67,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
[Retry(3)]
|
|
|
|
public void should_hold_the_call_while_paused()
|
|
|
|
public void should_hold_the_call_while_paused()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var counter = new Counter();
|
|
|
|
var counter = new Counter();
|
|
|
@ -98,6 +101,7 @@ namespace NzbDrone.Common.Test.TPLTests
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
[Retry(3)]
|
|
|
|
public void should_handle_pause_reentrancy()
|
|
|
|
public void should_handle_pause_reentrancy()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var counter = new Counter();
|
|
|
|
var counter = new Counter();
|
|
|
|