Skip to content

Commit

Permalink
services/mirror: fix dropped test errors (#9007)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored and lafriks committed Nov 15, 2019
1 parent 149a9df commit 896ad1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/mirror/mirror_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
}

0 comments on commit 896ad1d

Please sign in to comment.