From b5de21552cff071300b9b60812c59d5bc9713ad7 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 21 Feb 2012 20:52:15 -0800 Subject: [PATCH] Hung automation FAIL! --- NzbDrone.Web.UI.Test/AutomationTestBase.cs | 15 ++++++++++----- .../NzbDrone.Web.UI.Automation.csproj | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Web.UI.Test/AutomationTestBase.cs b/NzbDrone.Web.UI.Test/AutomationTestBase.cs index 602fd9d41..79ef23474 100644 --- a/NzbDrone.Web.UI.Test/AutomationTestBase.cs +++ b/NzbDrone.Web.UI.Test/AutomationTestBase.cs @@ -114,9 +114,11 @@ namespace NzbDrone.Web.UI.Automation foreach (var process in Process.GetProcesses()) { if (string.Equals(process.ProcessName, "NzbDrone", StringComparison.InvariantCultureIgnoreCase) - || string.Equals(process.ProcessName, "IISExpress", StringComparison.InvariantCultureIgnoreCase)) + || string.Equals(process.ProcessName, "IISExpress", StringComparison.InvariantCultureIgnoreCase)) + { process.Kill(); - process.WaitForExit(); + process.WaitForExit(); + } } try @@ -128,10 +130,13 @@ namespace NzbDrone.Web.UI.Automation foreach (var process in Process.GetProcesses()) { if (string.Equals(process.ProcessName, "NzbDrone", StringComparison.InvariantCultureIgnoreCase) - || string.Equals(process.ProcessName, "IISExpress", StringComparison.InvariantCultureIgnoreCase) - || string.Equals(process.ProcessName, "ServiceUninstall", StringComparison.InvariantCultureIgnoreCase)) + || string.Equals(process.ProcessName, "IISExpress", StringComparison.InvariantCultureIgnoreCase) + || + string.Equals(process.ProcessName, "ServiceUninstall", StringComparison.InvariantCultureIgnoreCase)) + { process.Kill(); - process.WaitForExit(); + process.WaitForExit(); + } } } diff --git a/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.csproj b/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.csproj index 7270cccbd..2fa5c35a6 100644 --- a/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.csproj +++ b/NzbDrone.Web.UI.Test/NzbDrone.Web.UI.Automation.csproj @@ -30,6 +30,7 @@ TRACE prompt 4 + x86