aboutsummaryrefslogtreecommitdiffstats
path: root/models/db/list_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/list_test.go')
-rw-r--r--models/db/list_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/list_test.go b/models/db/list_test.go
index 6b9bebd64b..b923dc9c22 100644
--- a/models/db/list_test.go
+++ b/models/db/list_test.go
@@ -40,7 +40,7 @@ func TestFind(t *testing.T) {
var repoUnits []repo_model.RepoUnit
err = db.Find(db.DefaultContext, &opts, &repoUnits)
assert.NoError(t, err)
- assert.EqualValues(t, repoUnitCount, len(repoUnits))
+ assert.Len(t, repoUnits, repoUnitCount)
cnt, err := db.Count(db.DefaultContext, &opts, new(repo_model.RepoUnit))
assert.NoError(t, err)