summaryrefslogtreecommitdiffstats
path: root/models/repo_test.go
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-23 21:28:43 +0200
committerzeripath <art27@cantab.net>2019-07-23 20:28:43 +0100
commit5e4e7d3df023892aa053d7c3e3005ab5f440b2e5 (patch)
tree650de0745b1bf958bc024f3f3aec106925095e37 /models/repo_test.go
parent54d96c79b5b9f3d5d47aed59729ae779968fbecb (diff)
downloadgitea-5e4e7d3df023892aa053d7c3e3005ab5f440b2e5.tar.gz
gitea-5e4e7d3df023892aa053d7c3e3005ab5f440b2e5.zip
Added missing error checks in tests (#7554)
Whenever we assign a value to err, check for it being nil.
Diffstat (limited to 'models/repo_test.go')
-rw-r--r--models/repo_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo_test.go b/models/repo_test.go
index 02cb5ab993..8c3f14695d 100644
--- a/models/repo_test.go
+++ b/models/repo_test.go
@@ -88,6 +88,7 @@ func TestUpdateRepositoryVisibilityChanged(t *testing.T) {
// Get sample repo and change visibility
repo, err := GetRepositoryByID(9)
+ assert.NoError(t, err)
repo.IsPrivate = true
// Update it