services/mirror: fix dropped test errors (#9007)
This commit is contained in:
parent
149a9df9e8
commit
896ad1d9cf
|
@ -76,6 +76,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
|
||||||
assert.True(t, ok)
|
assert.True(t, ok)
|
||||||
|
|
||||||
count, err := models.GetReleaseCountByRepoID(mirror.ID, findOptions)
|
count, err := models.GetReleaseCountByRepoID(mirror.ID, findOptions)
|
||||||
|
assert.NoError(t, err)
|
||||||
assert.EqualValues(t, initCount+1, count)
|
assert.EqualValues(t, initCount+1, count)
|
||||||
|
|
||||||
release, err := models.GetRelease(repo.ID, "v0.2")
|
release, err := models.GetRelease(repo.ID, "v0.2")
|
||||||
|
@ -86,5 +87,6 @@ func TestRelease_MirrorDelete(t *testing.T) {
|
||||||
assert.True(t, ok)
|
assert.True(t, ok)
|
||||||
|
|
||||||
count, err = models.GetReleaseCountByRepoID(mirror.ID, findOptions)
|
count, err = models.GetReleaseCountByRepoID(mirror.ID, findOptions)
|
||||||
|
assert.NoError(t, err)
|
||||||
assert.EqualValues(t, initCount, count)
|
assert.EqualValues(t, initCount, count)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue