Skip to content

Fix: collect unit-queue test output before asserting - #1901

Merged
repeat98 merged 6 commits into
mainfrom
codex/unit-queue-test-output
Nov 21, 2026
Merged

repeat98 merged 6 commits into
mainfrom
codex/unit-queue-test-output

Conversation

@repeat98

Copy link
Copy Markdown
Owner

What was wrong or hard

The unit-queue test awaited the child’s exit event and then asserted on stderr. The #1877 test job got exit code 1 with the refusal text still missing. A local subprocess probe reproduced that ordering when a descendant held the stderr pipe.

What this changes

Wait for close before reading the command’s output. The test that deliberately kills the queue process still waits for its exit before killing the command it started, then waits for the pipes to close. All exit-code, refusal and takeover assertions still run.

How I checked it

All 11 unit-queue tests passed, including the deliberate two-process kill case. npm run pr:ready passed. This change affects the test harness.

What the guides lacked or got wrong, and where I fixed it

Nothing.

Found with /modwerk-contribute.

@github-actions github-actions Bot added the bug Something isn't working label Nov 20, 2026
@repeat98
repeat98 enabled auto-merge (squash) November 21, 2026 05:51
@repeat98
repeat98 merged commit 2aa8ee3 into main Nov 21, 2026
11 checks passed
@repeat98
repeat98 deleted the codex/unit-queue-test-output branch November 25, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant