Skip to content

test: kill a stray Apollo against real processes (#124) - #132

Merged
vibesoftwarecoder merged 1 commit into
masterfrom
test/stray-kill-live
Oct 22, 2026
Merged

vibesoftwarecoder merged 1 commit into
masterfrom
test/stray-kill-live

Conversation

@vibesoftwarecoder

Copy link
Copy Markdown
Owner

The stray-Apollo kill from #124 only had unit tests for the command-line matching rule. This adds a test that runs the whole path against real processes and real WMI.

It starts two fake sunshine.exe processes, one on each of two seats' configs, and calls KillStrayApollosForConfig. It checks that the process on the named config is killed, the one on the other config survives, and any real sunshine.exe on the machine is not touched.

Controls: WMI is shown to see each process under its own config only, and a config nobody runs kills nothing. With the kill method replaced by a no-op, the test fails (Expected: 1, Actual: 0).

Full suite: 1704 passed, 18 skipped, 0 failed. No source changes.

🤖 Generated with Claude Code

The stray-Apollo kill only had unit tests for the command-line matching
rule. This runs the whole path against real processes and real WMI: two
fake sunshine.exe processes on two seats' configs, one kill call, and a
check that only the process on the named config dies and no real
sunshine.exe is touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vibesoftwarecoder
vibesoftwarecoder merged commit c704e3e into master Oct 22, 2026
3 checks passed
@vibesoftwarecoder
vibesoftwarecoder deleted the test/stray-kill-live branch October 22, 2026 21: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.

1 participant