Skip to content

Add the ability to test update-ref failures in Go code

We have API calls that will return something on updateRefError, but it's a hassle to test, since it only realistically happens with race conditions.

This adds a hacky way to test update-ref, see the first commit for details. The second commit adds two tests using it. One for UserDeleteTag, and one for UserCreateTag.

Edited by Ævar Arnfjörð Bjarmason

Merge request reports