Skip to content

test(fake-adapter): rename re-kill test to match its assertion - #373

Merged
nedtwigg merged 1 commit into
mainfrom
test/fake-adapter-rekill-name
Aug 15, 2026
Merged

test(fake-adapter): rename re-kill test to match its assertion#373
nedtwigg merged 1 commit into
mainfrom
test/fake-adapter-rekill-name

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Surfaced by the nightly code-quality sweep.

The test named 'killing already-killed terminals does not double-fire handlers' asserts expect(exitEvents).toHaveLength(2) — i.e. the second killPty does fire exit again — and its own inline comment confirms "Both calls fire exit (killPty doesn't guard against re-kill)". The name states the opposite of the behavior it pins, so anyone scanning test names would believe re-kill is guarded when it isn't.

Renames it to 're-killing a terminal fires exit again (no re-kill guard)' to match the asserted behavior. No code or assertion change; the test still passes (31/31 in the file).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4299a8c
Status: ✅  Deploy successful!
Preview URL: https://f9f414bc.mouseterm.pages.dev
Branch Preview URL: https://test-fake-adapter-rekill-nam.mouseterm.pages.dev

View logs

@nedtwigg
nedtwigg merged commit 2494e64 into main Aug 15, 2026
7 of 8 checks passed
@nedtwigg
nedtwigg deleted the test/fake-adapter-rekill-name branch August 15, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants