mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
handling process end on integration tests.
This commit is contained in:
@@ -99,7 +99,7 @@ namespace NzbDrone.Integration.Test
|
|||||||
|
|
||||||
if (eventArgs.Data.Contains("Press enter to exit"))
|
if (eventArgs.Data.Contains("Press enter to exit"))
|
||||||
{
|
{
|
||||||
Assert.Fail("Process waiting for input");
|
process.StandardInput.WriteLine(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine(eventArgs.Data);
|
Console.WriteLine(eventArgs.Data);
|
||||||
@@ -111,7 +111,7 @@ namespace NzbDrone.Integration.Test
|
|||||||
|
|
||||||
if (eventArgs.Data.Contains("Press enter to exit"))
|
if (eventArgs.Data.Contains("Press enter to exit"))
|
||||||
{
|
{
|
||||||
Assert.Fail("Process waiting for input");
|
process.StandardInput.WriteLine(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine(eventArgs.Data);
|
Console.WriteLine(eventArgs.Data);
|
||||||
@@ -123,6 +123,8 @@ namespace NzbDrone.Integration.Test
|
|||||||
process.BeginErrorReadLine();
|
process.BeginErrorReadLine();
|
||||||
process.BeginOutputReadLine();
|
process.BeginOutputReadLine();
|
||||||
|
|
||||||
|
process.Exited += (sender, eventArgs) => Assert.Fail("Process exited");
|
||||||
|
|
||||||
return process;
|
return process;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user