diff --git a/test/E2ETests/SmokeTests.cs b/test/E2ETests/SmokeTests.cs index 12d402c7bc..91ddf4ac96 100644 --- a/test/E2ETests/SmokeTests.cs +++ b/test/E2ETests/SmokeTests.cs @@ -106,7 +106,7 @@ namespace E2ETests } finally { - if (hostProcess != null) + if (hostProcess != null & !hostProcess.HasExited) { //Shutdown the host process hostProcess.Kill(); @@ -120,6 +120,10 @@ namespace E2ETests Console.WriteLine("Successfully terminated host process with process Id '{0}'", hostProcess.Id); } } + else + { + Console.WriteLine("Host process already exited or never started successfully."); + } DbUtils.DropDatabase(musicStoreDbName); DbUtils.DropDatabase(musicStoreIdentityDbName);