mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add error for fork already existing (#7185)
This commit is contained in:
committed by
techknowlogick
parent
f9ec2f89f2
commit
744fd6a1c8
@@ -131,7 +131,7 @@ func TestForkRepository(t *testing.T) {
|
||||
fork, err := ForkRepository(user, user, repo, "test", "test")
|
||||
assert.Nil(t, fork)
|
||||
assert.Error(t, err)
|
||||
assert.True(t, IsErrRepoAlreadyExist(err))
|
||||
assert.True(t, IsErrForkAlreadyExist(err))
|
||||
}
|
||||
|
||||
func TestRepoAPIURL(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user