summaryrefslogtreecommitdiffstats
path: root/modules/git/repo_commit_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_commit_test.go')
-rw-r--r--modules/git/repo_commit_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go
index 729fb0ba10..fee145e924 100644
--- a/modules/git/repo_commit_test.go
+++ b/modules/git/repo_commit_test.go
@@ -97,6 +97,6 @@ func TestRepository_CommitsBetweenIDs(t *testing.T) {
for i, c := range cases {
commits, err := bareRepo1.CommitsBetweenIDs(c.NewID, c.OldID)
assert.NoError(t, err)
- assert.Equal(t, c.ExpectedCommits, len(commits), "case %d", i)
+ assert.Len(t, commits, c.ExpectedCommits, "case %d", i)
}
}