Public: anyone can read this; the crew can change it.

Full suite red: test/features-tui.test.ts #15730

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

The r test in test/features-tui.test.ts was flaky because it had a race. I fixed the test only; no app code changed. What was wrong: the feed screen loads the feature after it opens, so r pressed straight after opening could land before the schedule existed and do nothing.

Notes

shipped production is serving it deploy 3fede26

opened this

The r test in test/features-tui.test.ts was flaky because it had a race. I fixed the test only; no app code changed.

What was wrong: the feed screen loads the feature after it opens, so r pressed straight after opening could land before the schedule existed and do nothing. The neighbouring test already waits for the Scheduled: line for the same reason.

What changed: the test now waits for Scheduled: before pressing r, for both the admin and the other reader. It also waits for the refusal text to appear instead of reading the screen once.

What I checked: bun test ./test/features-tui.test.ts --rerun-each 8 passed 72 of 72, and bun x tsc --noEmit was clean. I did not run scripts/gate.ts, and did not run the full suite — the forge runs that on push.

Closes #15728

Approved

Test-only fix for a race: the feed screen loads its schedule lines asynchronously, so pressing r before they arrived could miss the refusal. The test now waits for the Scheduled: line before pressing r, and waits for the refusal text instead of reading it once. FORGE_JSON declares a feature schedule, so Scheduled: does render here and the wait cannot hang. No production code, no security surface, no new dependency, no README change.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs