TestProcessRetryTask_LargeBody_FetchFromDB stays green when the fetch it exists to exercise is deleted #294
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Found by mutation testing during the review of #292. Pre-existing — verified identical on unmodified
next, so that PR neither introduced nor worsened it.TestProcessRetryTask_LargeBody_FetchFromDBasserts only that the delivery endsstatus == delivered. It never asserts the large body actually reached the sink. So deleting the event-body fetch entirely — the one behaviour the test is named for and exists to exercise — leaves it green.Its
ProcessNewTasksibling does redden under the same mutation, which is what makes this a gap rather than a design choice: the coverage exists on one path and is absent on the other, and the test name implies otherwise.Why it is worth recording despite predating this work: a delivery on the retry path fetching an empty or truncated body would still report
delivered, and this test would still pass. The body is the entire payload of the product. #256 made the retry path's bookkeeping load-bearing in a way it was not before, so the retry path is exactly where this should be pinned.Definition of done
delivered.TestProcessRetryTask_SuccessfulRetryis the obvious neighbour.Not milestoned: no defect in the product, and the behaviour it fails to pin is currently correct. This is regression insurance on the path that carries the payload.