handling process end on integration tests.

pull/3113/head
kay.one 11 years ago
parent 1600d51707
commit eb29c5a837

@ -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;
}

Loading…
Cancel
Save