mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Increase timeout for console app tests
This commit is contained in:
parent
00fd9b14d3
commit
743594ab9d
@ -6,6 +6,8 @@ namespace NAPS2.App.Tests;
|
||||
|
||||
public class ConsoleAppTests : ContextualTests
|
||||
{
|
||||
private const int EXIT_TIMEOUT = 30_000;
|
||||
|
||||
[Theory]
|
||||
[ClassData(typeof(AppTestData))]
|
||||
public void ConvertsImportedFile(IAppTestTarget target)
|
||||
@ -17,7 +19,7 @@ public class ConsoleAppTests : ContextualTests
|
||||
var process = AppTestHelper.StartProcess(target.Console, FolderPath, args);
|
||||
try
|
||||
{
|
||||
Assert.True(process.WaitForExit(5000));
|
||||
Assert.True(process.WaitForExit(EXIT_TIMEOUT));
|
||||
var stdout = process.StandardOutput.ReadToEnd();
|
||||
Assert.Equal(0, process.ExitCode);
|
||||
Assert.Empty(stdout);
|
||||
@ -41,7 +43,7 @@ public class ConsoleAppTests : ContextualTests
|
||||
var process = AppTestHelper.StartProcess(target.Console, FolderPath, args);
|
||||
try
|
||||
{
|
||||
Assert.True(process.WaitForExit(5000));
|
||||
Assert.True(process.WaitForExit(EXIT_TIMEOUT));
|
||||
var stdout = process.StandardOutput.ReadToEnd();
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user