mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Migrations
Still need to remove System.Data.Sqlite, prefer an option in OrmLite to pluralize table names.
This commit is contained in:
parent
b9fac94eca
commit
4bb4faf626
29 changed files with 375 additions and 50 deletions
|
@ -78,7 +78,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
[Test]
|
||||
public void running_scheduled_jobs_should_updates_last_execution_time()
|
||||
{
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { TypeName = _fakeJob.GetType().FullName } });
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { Type = _fakeJob.GetType().FullName } });
|
||||
|
||||
Subject.EnqueueScheduled();
|
||||
WaitForQueue();
|
||||
|
@ -91,7 +91,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
[Test]
|
||||
public void failing_scheduled_job_should_mark_job_as_failed()
|
||||
{
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { TypeName = _brokenJob.GetType().FullName } });
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { Type = _brokenJob.GetType().FullName } });
|
||||
|
||||
Subject.EnqueueScheduled();
|
||||
WaitForQueue();
|
||||
|
@ -193,7 +193,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
[Test]
|
||||
public void Item_added_to_queue_while_scheduler_runs_should_be_executed()
|
||||
{
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { TypeName = _slowJob.GetType().FullName } });
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { Type = _slowJob.GetType().FullName } });
|
||||
|
||||
var jobThread = new Thread(Subject.EnqueueScheduled);
|
||||
jobThread.Start();
|
||||
|
@ -219,7 +219,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
[Test]
|
||||
public void scheduled_job_should_have_scheduler_as_source()
|
||||
{
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { TypeName = _slowJob.GetType().FullName }, new JobDefinition { TypeName = _slowJob2.GetType().FullName } });
|
||||
GivenPendingJob(new List<JobDefinition> { new JobDefinition { Type = _slowJob.GetType().FullName }, new JobDefinition { Type = _slowJob2.GetType().FullName } });
|
||||
Subject.EnqueueScheduled();
|
||||
|
||||
Subject.Queue.Should().OnlyContain(c => c.Source == JobQueueItem.JobSourceType.Scheduler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue