mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
handling process end on integration tests.
This commit is contained in:
parent
1600d51707
commit
eb29c5a837
@ -99,7 +99,7 @@ private Process Start(string path)
|
||||
|
||||
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 @@ private Process Start(string path)
|
||||
|
||||
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 @@ private Process Start(string path)
|
||||
process.BeginErrorReadLine();
|
||||
process.BeginOutputReadLine();
|
||||
|
||||
process.Exited += (sender, eventArgs) => Assert.Fail("Process exited");
|
||||
|
||||
return process;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user