Add error for fork already existing (#7185)

This commit is contained in:
John Olheiser 2019-06-12 15:20:43 -05:00 committed by techknowlogick
parent f9ec2f89f2
commit 744fd6a1c8
3 changed files with 22 additions and 4 deletions

View file

@ -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) {