fleetd #537: pin CapturedLog.close()'s appender-detach and setLevel-immunity contracts #540
Reference in New Issue
Block a user
Delete Branch "worker/537-capturedlog-close-e4c437-2"
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?
Test-only change. Adds fleetd/src/test/java/dev/ltms/fleet/testing/CapturedLogTest.java pinning the two halves of CapturedLog#close() that were not covered before this:
Measured gap before this change: deleting logger.detachAppender(appender); from CapturedLog.close() left mvn clean install green (1701 tests, 0 failures, 0 errors) -- the appender-detach half of fleetd #525's fix was unmeasured.
CapturedLog.java itself is untouched; only the new test file is added.
Build: mvn clean install -> Tests run: 1704, Failures: 0, Errors: 0, Skipped: 0, BUILD SUCCESS (up from 1701, +3 new tests).
Mutation testing performed (each restored after, sha256 verified pristine before/after):
Final control re-run after restoring CapturedLog.java to pristine: BUILD SUCCESS, 1704/0/0/0, git status clean.