mirror of
https://github.com/obra/superpowers.git
synced 2026-06-11 05:09:05 +08:00
The test had drifted behind three server implementation changes and no longer ran against the actual server: - Server entrypoint renamed from server.js to server.cjs; the test still invoked node on server.js and failed with MODULE_NOT_FOUND. - Server state moved to a state/ subdirectory (state/server-info, state/server.pid); the test still waited on .server-info and wrote .server.pid at the session root. - Owner-PID startup validation now keeps the server running when the owner PID is dead at startup: it logs owner-pid-invalid, disables owner monitoring, and falls back to the idle timeout. The test still expected the server to self-terminate within 60s of a dead-at-startup owner. Update file/path references to match the current server, and rewrite the dead-at-startup test to assert the current behavior: server survives, log contains owner-pid-invalid, log does not contain a spurious "owner process exited" line. Verified locally: 9 passed, 0 failed, 3 skipped (Windows-only).