1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Give a couple of timing-based tests a bit more breathing room.

This commit is contained in:
Taloth Saldono 2016-04-03 23:31:42 +02:00
parent 96b7bd3b2b
commit 2fa3873503
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -62,6 +62,7 @@ public void should_not_delay_unrelated_key()
}
[Test]
[Retry(3)]
public void should_wait_for_existing()
{
GivenExisting("me", _epoch + TimeSpan.FromMilliseconds(200));
@ -70,7 +71,7 @@ public void should_wait_for_existing()
Subject.WaitAndPulse("me", TimeSpan.FromMilliseconds(400));
watch.Stop();
watch.ElapsedMilliseconds.Should().BeInRange(195, 250);
watch.ElapsedMilliseconds.Should().BeInRange(175, 250);
}
[Test]