Skip to content

Commit 1fbd426

Browse files
committed
test: increase closed-stdin pipe pressure on Windows
1 parent 97ce3b0 commit 1fbd426

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ClaudeCodeSharpSDK.Tests/Unit/ProcessRunnerCancellationTests.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class ProcessRunnerCancellationTests
3838
private const string StandardOutputPressureCharacter = "s";
3939
private const int PipePressureCharacters = 262144;
4040
private const int LargePromptCharacters = 262144;
41+
private const int StdinClosePressureCharacters = 16777216;
4142
private const int LargeProcessOutputCharacters = 1048576;
4243
private const string WindowsLongRunningCommand = "Write-Output $PID; Start-Sleep -Seconds 30";
4344
private const string WindowsSingleLineOverflowCommand = "Write-Output ('x' * 100); Start-Sleep -Seconds 30";
@@ -290,7 +291,7 @@ private static async Task Runner_StillRunningAfterClosingInputIsBoundedAndUnconf
290291
sandbox,
291292
[NodeEvaluationFlag, NodeClosingInputFixture, readyPath, releasePath, closedPath],
292293
OperatingSystem.IsWindows() ? CreateWindowsProcessEnvironment() : CreateEnvironment(),
293-
new string(PromptCharacter[0], LargePromptCharacters),
294+
new string(PromptCharacter[0], StdinClosePressureCharacters),
294295
TimeSpan.FromMilliseconds(250))
295296
{
296297
MaximumProcessOutputCharacters = LargeProcessOutputCharacters,

0 commit comments

Comments
 (0)