|
|
|
|
@ -281,7 +281,7 @@ func TestIncludesAllRepositoriesTeams(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Remove repo and check teams repositories.
|
|
|
|
|
assert.NoError(t, repo_service.DeleteRepositoryDirectly(db.DefaultContext, user, repoIDs[0]), "DeleteRepository")
|
|
|
|
|
assert.NoError(t, repo_service.DeleteRepositoryDirectly(db.DefaultContext, repoIDs[0]), "DeleteRepository")
|
|
|
|
|
teamRepos[0] = repoIDs[1:]
|
|
|
|
|
teamRepos[1] = repoIDs[1:]
|
|
|
|
|
teamRepos[3] = repoIDs[1:3]
|
|
|
|
|
@ -293,7 +293,7 @@ func TestIncludesAllRepositoriesTeams(t *testing.T) {
|
|
|
|
|
// Wipe created items.
|
|
|
|
|
for i, rid := range repoIDs {
|
|
|
|
|
if i > 0 { // first repo already deleted.
|
|
|
|
|
assert.NoError(t, repo_service.DeleteRepositoryDirectly(db.DefaultContext, user, rid), "DeleteRepository %d", i)
|
|
|
|
|
assert.NoError(t, repo_service.DeleteRepositoryDirectly(db.DefaultContext, rid), "DeleteRepository %d", i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
assert.NoError(t, DeleteOrganization(db.DefaultContext, org, false), "DeleteOrganization")
|
|
|
|
|
|