Add error for fork already existing (#7185)

This commit is contained in:
John Olheiser authored and techknowlogick committed 2019-06-12 16:20:43 -04:00
1 parent f9ec2f89f2
commit 744fd6a1c8
3 files changed
+22 -4

No files matched your search

+1 -1
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) {