Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/task: improve how fakes report nonexistent file and no tags
The TagXReposTasks.readRepo method calls ReadBranchHead and ReadFile, and handles errors matching gerrit.ErrResourceNotExist that the real Gerrit implementation returns. Improve the fakes accordingly, enough to make the upcoming changes to the tagging workflow its tests happy. For golang/go#56530. Change-Id: I4d92d578210b20752e65bdc2719b74bc5c7259ff Reviewed-on: https://go-review.googlesource.com/c/build/+/523155 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information