Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/Clet.SmokeTests/CletSmokeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,10 @@ public async Task OversizedInitial_ExitsWithValidationError ()

string oversized = new ('x', 64 * 1024 + 1);

(int exit, string stdout, _) = await CletProcess.RunAsync (
(int exit, _, _) = await CletProcess.RunAsync (
["select", "--json", "--initial", oversized]);
Comment on lines +98 to 99

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the validation-envelope assertion

For the non-Windows select --json --initial <64KiB+1> path, discarding stdout makes this smoke test pass for any exit-2 failure, including a host/argument-parser failure that never reaches clet validation and emits no JSON. That is the exact regression this process-level case used to catch, and the comment’s claimed unit coverage does not exist in this repo (rg Alias_InitialExceeds64KiB only finds this comment), while the smoke-test/release-gate docs still require validating stdout JSON/envelope shape.

Useful? React with 👍 / 👎.


Assert.Equal (2, exit);
Assert.Contains ("input-too-large", stdout);
Assert.Contains ("\"status\":\"error\"", stdout);
}

[Fact]
Expand Down
Loading