From 896ad1d9cf31dafc82d852a518066ed54678ed65 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 14 Nov 2019 20:54:23 -0800 Subject: [PATCH] services/mirror: fix dropped test errors (#9007) --- services/mirror/mirror_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/mirror/mirror_test.go b/services/mirror/mirror_test.go index 37e8a7be57..81811ffe4a 100644 --- a/services/mirror/mirror_test.go +++ b/services/mirror/mirror_test.go @@ -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) }