Skip to content
Browse files

Swallowed exceptions generated by retrieving the process name when tr…

…ying to kill the TestHost.
  • Loading branch information...
1 parent e7ad906 commit 55ea38cfdf10c84cd60fcc148df0ed0ff7a0af08 @NTaylorMullen NTaylorMullen committed Nov 11, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/Microsoft.AspNet.SignalR.Tests.Common/Infrastructure/IIS/SiteManager.cs
View
4 tests/Microsoft.AspNet.SignalR.Tests.Common/Infrastructure/IIS/SiteManager.cs
@@ -234,13 +234,15 @@ private static bool KillProcess(Process process)
}
int id = process.Id;
- string name = process.ProcessName;
bool killed = false;
Exception exception = null;
+ string name = String.Empty;
try
{
+ name = process.ProcessName;
+
process.Kill();
process.WaitForExit();

0 comments on commit 55ea38c

Please sign in to comment.
Something went wrong with that request. Please try again.