Fix memory leak when running SpecFlow tests

As a workaround for nunit reporting obscure AppDomainUnloadedException,
update the .config file to disable lagacy exception handling policy.

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-17 23:42:24 -07:00
parent 99d86a08f2
commit 92c6460e57
2 changed files with 5 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
using System;
using System.Threading;
using System.Web;
using System.Web.Hosting;
using Orchard.Specs.Hosting.Orchard.Web;
namespace Orchard.Specs.Hosting {
public class WebHostAgent : MarshalByRefObject
@@ -11,11 +14,7 @@ namespace Orchard.Specs.Hosting {
}
public void Shutdown() {
//TODO: this line is required to properly shutdown the ASP.NET
// host and release memory when running multiple SpecFlow tests.
// However, nuint complains about an unhandled AppdomainUnloadedException
// When we figure out a way around this, we will re-enable this line.
//HostingEnvironment.InitiateShutdown();
HostingEnvironment.InitiateShutdown();
}
}
}