From eb29c5a837a2484d29237e70b99c06c46271fe3c Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 13 Aug 2013 12:53:29 -0700 Subject: [PATCH] handling process end on integration tests. --- NzbDrone.Integration.Test/IntegrationTest.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Integration.Test/IntegrationTest.cs b/NzbDrone.Integration.Test/IntegrationTest.cs index cf2118790..61aa2a630 100644 --- a/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/NzbDrone.Integration.Test/IntegrationTest.cs @@ -99,7 +99,7 @@ namespace NzbDrone.Integration.Test if (eventArgs.Data.Contains("Press enter to exit")) { - Assert.Fail("Process waiting for input"); + process.StandardInput.WriteLine(" "); } Console.WriteLine(eventArgs.Data); @@ -111,7 +111,7 @@ namespace NzbDrone.Integration.Test if (eventArgs.Data.Contains("Press enter to exit")) { - Assert.Fail("Process waiting for input"); + process.StandardInput.WriteLine(" "); } Console.WriteLine(eventArgs.Data); @@ -123,6 +123,8 @@ namespace NzbDrone.Integration.Test process.BeginErrorReadLine(); process.BeginOutputReadLine(); + process.Exited += (sender, eventArgs) => Assert.Fail("Process exited"); + return process; }