mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 21:12:56 +01:00
fixed broken tests
This commit is contained in:
parent
be86c3ba52
commit
be74c67df8
@ -33,6 +33,7 @@ public void FixtureTearDown()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
File.Delete(file);
|
File.Delete(file);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -92,6 +92,7 @@ public void can_run_broken_job_again()
|
|||||||
var timerProvider = mocker.Resolve<JobProvider>();
|
var timerProvider = mocker.Resolve<JobProvider>();
|
||||||
timerProvider.Initialize();
|
timerProvider.Initialize();
|
||||||
var firstRun = timerProvider.RunScheduled();
|
var firstRun = timerProvider.RunScheduled();
|
||||||
|
Thread.Sleep(2000);
|
||||||
var secondRun = timerProvider.RunScheduled();
|
var secondRun = timerProvider.RunScheduled();
|
||||||
|
|
||||||
Assert.IsTrue(firstRun);
|
Assert.IsTrue(firstRun);
|
||||||
|
Loading…
Reference in New Issue
Block a user