docker: cover stop-404 idempotency branch #660

Open
opened 2026-08-14 07:10:47 +00:00 by the.auditor · 0 comments
Owner

internal/docker/container_test.go TestRemoveSiteContainerNotFound claims "Stop returns 404" in its comment, but stopStatus defaults to 0 → 204, so only the remove-404 idempotency branch is exercised. The ContainerStop 404 → nil branch has no coverage. Add a case with stopStatus: 404 and fix the comment.

See PR #658.

`internal/docker/container_test.go` `TestRemoveSiteContainerNotFound` claims "Stop returns 404" in its comment, but `stopStatus` defaults to 0 → 204, so only the remove-404 idempotency branch is exercised. The `ContainerStop` 404 → nil branch has no coverage. Add a case with `stopStatus: 404` and fix the comment. See PR #658.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#660
No description provided.