Skip to content

Commit

Permalink
test: Fix the test case for ProcessTest
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Sep 19, 2024
1 parent ac3a0c2 commit e62f5bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/LibplanetConsole.Consoles.Tests/ProcessTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OperationCanceledException>(
await Assert.ThrowsAnyAsync<OperationCanceledException>(
() => process.RunAsync(cancellationTokenSource.Token));
Assert.False(process.IsRunning);
Assert.Equal(-1, process.Id);
Expand Down

0 comments on commit e62f5bd

Please sign in to comment.