spec: Do not stub temporary repo in sync service shared examples
When synchronizing repositories, then depending on a retry counter we may either fetch into the real repository, or recreate the repo by first creating a temporary staging repository, populating that repository and then moving it into place. Our tests stub out this logic though such that we always end up fetching into the real repository: this both keeps us from exercising whether we fetch into the expected repo, and this logic will break when Gitaly changes semantics of the CreateRepository RPC to raise an error if the repository exists already. Fix this issue by not stubbing out the temporary repository. Instead, we now assert that function calls end up using the correct repository.
Showing
Please register or sign in to comment