]> source.dussan.org Git - gitea.git/commitdiff
services/mirror: fix dropped test errors (#9007)
authorLars Lehtonen <lars.lehtonen@gmail.com>
Fri, 15 Nov 2019 04:54:23 +0000 (20:54 -0800)
committerLauris BH <lauris@nix.lv>
Fri, 15 Nov 2019 04:54:23 +0000 (06:54 +0200)
services/mirror/mirror_test.go

index 37e8a7be573760078dcbc98f38d473e78008205c..81811ffe4a15a5d2514afe06f9fefecce79d63c3 100644 (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)
 }