#589 Group 3: wiring-test 5 sites below line 500 in Fleetd.main() #598
Reference in New Issue
Block a user
Delete Branch "worker/589-fcd2aa-1"
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?
Implements Group 3 of #589: extracts the 5 assigned inline wiring sites (turnRegistrar, healthFailTarget, releaseCleanup, replyInboxOpener, leadMailboxOpener) into named package-private factories on Fleetd, following the FleetdLoopHealthSourceWiringTest pattern from #584. Each gets a runtime test (not source-text) that drives real collaborators through public APIs.
releaseCleanup was done first, as required, since MessageService.abandon's javadoc documents that losing this cleanup leaves a torn-down worker's rendezvous waiter open forever.
Tests: 1789 -> 1794 (+5), 0 failures, 0 errors. Verified mvn -q -o test exit 0 directly (not through a pipe), no BUILD FAILURE in the log. Each new test was confirmed RED on the inert form named in the ticket (failing by name), and GREEN after reformatting the wiring call across lines and extracting the argument into a local variable/factory, per criteria 1 and 2.
Scope stays below line 500 in main(), per the split with worker/589-f64303-2 (Groups 1/2, at or above line 500).