|
|
@ -92,6 +92,7 @@ namespace NzbDrone.Core.Test
|
|
|
|
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);
|
|
|
|