mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Removing Warmup module in functional tests
--HG-- branch : 1.x
This commit is contained in:
@@ -9,9 +9,6 @@ namespace Orchard.Specs.Hosting.Orchard.Web {
|
||||
public class MvcApplication : HttpApplication {
|
||||
private static IOrchardHost _host;
|
||||
|
||||
public MvcApplication() {
|
||||
}
|
||||
|
||||
public static void RegisterRoutes(RouteCollection routes) {
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
}
|
||||
@@ -19,8 +16,9 @@ namespace Orchard.Specs.Hosting.Orchard.Web {
|
||||
protected void Application_Start() {
|
||||
RegisterRoutes(RouteTable.Routes);
|
||||
_host = OrchardStarter.CreateHost(MvcSingletons);
|
||||
|
||||
_host.Initialize();
|
||||
|
||||
|
||||
// initialize shells to speed up the first dynamic query
|
||||
_host.BeginRequest();
|
||||
_host.EndRequest();
|
||||
|
@@ -122,9 +122,9 @@
|
||||
|
||||
</httpHandlers>
|
||||
|
||||
<httpModules>
|
||||
<!--<httpModules>
|
||||
<add name="WarmupHttpModule" type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.0.20, Culture=neutral"/>
|
||||
</httpModules>
|
||||
</httpModules>-->
|
||||
</system.web>
|
||||
<!--
|
||||
The system.webServer section is required for running ASP.NET AJAX under Internet
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using FluentNHibernate.Cfg.Db;
|
||||
using Orchard.Data.Providers;
|
||||
using MsSqlCeConfiguration = FluentNHibernate.Cfg.Db.MsSqlCeConfiguration;
|
||||
using MsSqlCeConfiguration = Orchard.Data.Providers.MsSqlCeConfiguration;
|
||||
|
||||
namespace Orchard.Specs.Hosting {
|
||||
public class TraceEnabledDataServicesProviderFactory : IDataServicesProviderFactory {
|
||||
@@ -13,7 +13,7 @@ namespace Orchard.Specs.Hosting {
|
||||
}
|
||||
public override IPersistenceConfigurer GetPersistenceConfigurer(bool createDatabase) {
|
||||
var config = (MsSqlCeConfiguration)base.GetPersistenceConfigurer(createDatabase);
|
||||
//config.ShowSql();
|
||||
config.ShowSql();
|
||||
return config;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user