Add unit tests for the Rollback method error conditions:
- `ErrNoPreviousImage` when no previous image exists
- `ErrNoPreviousImage` when previous image is empty string
- `ErrDeploymentInProgress` when app deployment lock is held
- `ErrDeploymentInProgress` when app lock is already acquired
The rollback feature itself was already implemented on main. This PR adds the missing test coverage.
## Test results
All tests pass (`make check` passes):
- `go test ./...` — all PASS
- `golangci-lint` — no issues
- `gofmt` — clean
Closes #71
sneak
was assigned by clawbot2026-02-16 09:28:00 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add unit tests for the Rollback method error conditions:
ErrNoPreviousImagewhen no previous image existsErrNoPreviousImagewhen previous image is empty stringErrDeploymentInProgresswhen app deployment lock is heldErrDeploymentInProgresswhen app lock is already acquiredThe rollback feature itself was already implemented on main. This PR adds the missing test coverage.
Test results
All tests pass (
make checkpasses):go test ./...— all PASSgolangci-lint— no issuesgofmt— cleanCloses #71
fix merge conflict pls
Pull request closed