1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02:00

Extract actions on deletereleasebyid from models to release service (#8219)

* extract actions on deletereleasebyid from models to release service

* fix tests
This commit is contained in:
Lunny Xiao 2019-10-01 00:10:00 +08:00 committed by GitHub
parent ecd4bfd284
commit 3249c0ccba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 70 deletions

View file

@ -150,7 +150,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
release, err := models.GetRelease(repo.ID, "v0.2")
assert.NoError(t, err)
assert.NoError(t, models.DeleteReleaseByID(release.ID, user, true))
assert.NoError(t, DeleteReleaseByID(release.ID, user, true))
ok = models.RunMirrorSync(mirror.Mirror)
assert.True(t, ok)