aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo_test.go
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-06-12 15:20:43 -0500
committertechknowlogick <hello@techknowlogick.com>2019-06-12 16:20:43 -0400
commit744fd6a1c87f2ad39dbe282133fae1190df6e538 (patch)
tree3838fb17bab5a39c82df33a8a5435701dd79add1 /models/repo_test.go
parentf9ec2f89f2265bc1371a6c62359de9816534fa6b (diff)
downloadgitea-744fd6a1c87f2ad39dbe282133fae1190df6e538.tar.gz
gitea-744fd6a1c87f2ad39dbe282133fae1190df6e538.zip
Add error for fork already existing (#7185)
Diffstat (limited to 'models/repo_test.go')
-rw-r--r--models/repo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_test.go b/models/repo_test.go
index 8411536d70..02cb5ab993 100644
--- a/models/repo_test.go
+++ b/models/repo_test.go
@@ -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) {