ignore WithReadDb() calls in mono
This commit is contained in:
parent
aeae9d75d1
commit
177f88303c
|
@ -82,6 +82,11 @@ namespace NzbDrone.Core.Test.Framework
|
||||||
|
|
||||||
protected void WithRealDb()
|
protected void WithRealDb()
|
||||||
{
|
{
|
||||||
|
if (EnvironmentProvider.IsMono)
|
||||||
|
{
|
||||||
|
throw new IgnoreException("SqlCe is not supported in mono.");
|
||||||
|
}
|
||||||
|
|
||||||
_db = GetEmptyDatabase();
|
_db = GetEmptyDatabase();
|
||||||
Mocker.SetConstant(Db);
|
Mocker.SetConstant(Db);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace NzbDrone.Core.Instrumentation
|
||||||
|
|
||||||
private static object GetLogger(Type type)
|
private static object GetLogger(Type type)
|
||||||
{
|
{
|
||||||
const string STRING_TO_REMOVE = "SyntikX";
|
const string STRING_TO_REMOVE = "NzbDrone";
|
||||||
|
|
||||||
var loggerName = type.FullName;
|
var loggerName = type.FullName;
|
||||||
if (loggerName.StartsWith(STRING_TO_REMOVE))
|
if (loggerName.StartsWith(STRING_TO_REMOVE))
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
using NzbDrone.Core.Model.Notification;
|
using NzbDrone.Core.Model.Notification;
|
||||||
|
@ -10,19 +8,12 @@ namespace NzbDrone.Core.Jobs
|
||||||
{
|
{
|
||||||
public class AppRestartJob : IJob
|
public class AppRestartJob : IJob
|
||||||
{
|
{
|
||||||
private readonly EnvironmentProvider _environmentProvider;
|
|
||||||
private readonly ProcessProvider _processProvider;
|
|
||||||
private readonly ServiceProvider _serviceProvider;
|
|
||||||
private readonly IISProvider _iisProvider;
|
private readonly IISProvider _iisProvider;
|
||||||
|
|
||||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||||
|
|
||||||
public AppRestartJob(EnvironmentProvider environmentProvider, ProcessProvider processProvider,
|
public AppRestartJob(IISProvider iisProvider)
|
||||||
ServiceProvider serviceProvider, IISProvider iisProvider)
|
|
||||||
{
|
{
|
||||||
_environmentProvider = environmentProvider;
|
|
||||||
_processProvider = processProvider;
|
|
||||||
_serviceProvider = serviceProvider;
|
|
||||||
_iisProvider = iisProvider;
|
_iisProvider = iisProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,7 @@ namespace NzbDrone.Core.Jobs
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var settings = All().Where(j => j.TypeName == queueItem.JobType.ToString()).Single();
|
var settings = All().Single(j => j.TypeName == queueItem.JobType.ToString());
|
||||||
|
|
||||||
using (_notification = new ProgressNotification(jobImplementation.Name))
|
using (_notification = new ProgressNotification(jobImplementation.Name))
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue