From e62f5bda1017d840266b8b839f059fa86675d525 Mon Sep 17 00:00:00 2001 From: s2quake Date: Thu, 19 Sep 2024 21:41:45 +0900 Subject: [PATCH] test: Fix the test case for ProcessTest --- test/LibplanetConsole.Consoles.Tests/ProcessTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/LibplanetConsole.Consoles.Tests/ProcessTest.cs b/test/LibplanetConsole.Consoles.Tests/ProcessTest.cs index c6af3130..73242e61 100644 --- a/test/LibplanetConsole.Consoles.Tests/ProcessTest.cs +++ b/test/LibplanetConsole.Consoles.Tests/ProcessTest.cs @@ -173,9 +173,9 @@ public async Task RunAsync_Runtime_Timeout_ThrowTestAsync() { var dotnetPath = ProcessEnvironment.DotnetPath; var executionPath = consoleApplicationFixture.ExecutionPath; - var process = new TestProcess(dotnetPath, executionPath, "1000"); + var process = new TestProcess(dotnetPath, executionPath, "10000"); using var cancellationTokenSource = new CancellationTokenSource(10); - await Assert.ThrowsAsync( + await Assert.ThrowsAnyAsync( () => process.RunAsync(cancellationTokenSource.Token)); Assert.False(process.IsRunning); Assert.Equal(-1, process.Id);