Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/c55ca42c21d211c0ecda2f5af51c451e93a186cb?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
18 additions and
10 deletions
@ -21,8 +21,7 @@ namespace NzbDrone.Core.Test
{
try
{
LogManager . Configuration =
new XmlLoggingConfiguration ( Path . Combine ( CentralDispatch . AppPath , "log.config" ) , false ) ;
LogManager . Configuration = new XmlLoggingConfiguration ( Path . Combine ( CentralDispatch . AppPath , "log.config" ) , false ) ;
LogManager . ThrowExceptions = true ;
var exceptionVerification = new ExceptionVerification ( ) ;
@ -35,7 +34,6 @@ namespace NzbDrone.Core.Test
Console . WriteLine ( "Unable to configure logging. " + e ) ;
}
var filesToDelete = Directory . GetFiles ( Directory . GetCurrentDirectory ( ) , "*.sdf" , SearchOption . AllDirectories ) ;
foreach ( var file in filesToDelete )
{
@ -45,6 +43,8 @@ namespace NzbDrone.Core.Test
}
catch { }
}
MockLib . CreateDataBaseTemplate ( ) ;
}
}
}
@ -17,20 +17,19 @@ namespace NzbDrone.Core.Test.Framework
/// </summary>
internal static class MockLib
{
public static string [ ] StandardSeries
{
get { return new [ ] { "c:\\tv\\the simpsons" , "c:\\tv\\family guy" , "c:\\tv\\southpark" , "c:\\tv\\24" } ; }
}
private const string DbTemplateName = "_dbtemplate.sdf" ;
public static IDatabase GetEmptyDatabase ( bool enableLogging = false , string fileName = "" )
{
Console . WriteLine ( "C reating an empty PetaPoco database ") ;
Console . WriteLine ( "C loning database from template. ") ;
if ( String . IsNullOrWhiteSpace ( fileName ) )
{
fileName = Guid . NewGuid ( ) + ".sdf" ;
}
File . Copy ( DbTemplateName , fileName ) ;
var connectionString = Connection . GetConnectionString ( fileName ) ;
var database = Connection . GetPetaPocoDb ( connectionString ) ;
@ -38,6 +37,14 @@ namespace NzbDrone.Core.Test.Framework
return database ;
}
public static void CreateDataBaseTemplate ( )
{
Console . WriteLine ( "Creating an empty PetaPoco database" ) ;
var connectionString = Connection . GetConnectionString ( DbTemplateName ) ;
var database = Connection . GetPetaPocoDb ( connectionString ) ;
database . Dispose ( ) ;
}
public static Series GetFakeSeries ( int id , string title )
{
return Builder < Series > . CreateNew ( )
@ -15,6 +15,7 @@ using PetaPoco;
namespace NzbDrone.Core.Test
{
[TestFixture]
[Category("Benchmark")]
// ReSharper disable InconsistentNaming
public class DbBenchmark : TestBase
{
@ -20,7 +20,7 @@ namespace NzbDrone.Core.Datastore
EnsureDatabase ( connetionString ) ;
Logger . Info ( "Preparing to run database migration" ) ;
Logger . Trace ( "Preparing to run database migration" ) ;
try
{