Browse Source

services/mirror: fix dropped test errors (#9007)

for-closed-social
Lars Lehtonen 5 years ago
committed by Lauris BH
parent
commit
896ad1d9cf
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      services/mirror/mirror_test.go

+ 2
- 0
services/mirror/mirror_test.go View File

@ -76,6 +76,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
assert.True(t, ok)
count, err := models.GetReleaseCountByRepoID(mirror.ID, findOptions)
assert.NoError(t, err)
assert.EqualValues(t, initCount+1, count)
release, err := models.GetRelease(repo.ID, "v0.2")
@ -86,5 +87,6 @@ func TestRelease_MirrorDelete(t *testing.T) {
assert.True(t, ok)
count, err = models.GetReleaseCountByRepoID(mirror.ID, findOptions)
assert.NoError(t, err)
assert.EqualValues(t, initCount, count)
}

Loading…
Cancel
Save