mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Cleaning up exceptions being thrown when the spec test web (app) host cleans up after itself
--HG-- branch : dev
This commit is contained in:
@@ -31,14 +31,14 @@ namespace Orchard.Specs.Bindings {
|
||||
|
||||
[BeforeTestRun]
|
||||
public static void BeforeTestRun() {
|
||||
if ( _orchardTemp.Exists ) {
|
||||
_orchardTemp.Delete(true).CreateDirectory();
|
||||
}
|
||||
try { _orchardTemp.Delete(true).CreateDirectory(); } catch {}
|
||||
}
|
||||
|
||||
[AfterTestRun]
|
||||
public static void AfterTestRun() {
|
||||
_orchardTemp.Delete(true); // <- try to clear any stragglers on the way out
|
||||
try {
|
||||
_orchardTemp.Delete(true); // <- try to clear any stragglers on the way out
|
||||
} catch {}
|
||||
}
|
||||
|
||||
[AfterScenario]
|
||||
|
Reference in New Issue
Block a user