mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 03:29:50 +02:00
Add error for fork already existing (#7185)
This commit is contained in:
1 parent
f9ec2f89f2
commit
744fd6a1c8
3 files changed
+22
-4
No files matched your search
+1
-1
@@ -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