test: repair server parent lifecycle coverage and unblock cli suite #14
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/test-server-parent-lifecycle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repair of the
fix/test-server-parent-lifecyclebranch.Changes
Isolate parent lifecycle fixtures and assert process state (
5d425184)HERDR_SOCKET_PATH, so the spawned test server collided with a real running server ("herdr server is already running") and exited immediately; the assertions were then vacuous.HERDR_SOCKET_PATH, XDG dirs,HERDR_CONFIG_PATHandHERDR_CLIENT_SOCKET_PATH, waits for the API socket to accept connections before killing the supervisor, distinguishes exited/zombie processes from live ones, and registers the runtime dir with the shared cleanup watchdog (cleanup on success and failure).Accept
freebsdplugin platform in manifests (7672ca8a)RawPlatformrejected"freebsd"even thoughPluginPlatform::Freebsdexists. Pre-existing onmaster; thecliplugin tests declarefreebsd, so install aborted early and one fake-server test deadlocked onaccept().Format
tests/support/mod.rs(557d915e)master; required forcargo fmt --all -- --check.Gates (fresh worktree at
557d915e)cargo test --test server_parent_lifecycle -- --test-threads=1-> 12 passed, 0 failedcargo test --test detach_reattach -- --test-threads=1-> 18 passed, 0 failedcargo test --test cli -- --test-threads=1-> 115 passed, 0 failed (75s)cargo fmt --all -- --check-> cleancargo check --locked-> okgit diff --check-> cleanKnown and out of scope
just check/just lintstill fails on pre-existing clippy lints in untouched test files (clippy::needless_borrowintests/cli/harness.rs,tests/server_headless.rs,tests/auto_detect.rs;clippy::items_after_test_moduleintests/support/mod.rs), andbunis not installed for the docs/integration recipes. These predate the branch.Review only; no merge requested.