mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-22 12:53:14 +02:00
Fix lint error: use assert.NotEmpty instead of assert.Greater
Co-authored-by: silverwind <115237+silverwind@users.noreply.github.com>
This commit is contained in:
parent
d2d6b9155b
commit
a5ec35db16
@ -88,7 +88,7 @@ func TestChangeTitleNormalChange(t *testing.T) {
|
||||
Type: issues_model.CommentTypeChangeTitle,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Greater(t, len(comments), 0, "Should have created a CommentTypeChangeTitle comment")
|
||||
assert.NotEmpty(t, comments, "Should have created a CommentTypeChangeTitle comment")
|
||||
|
||||
// Verify the last comment has the correct old and new titles
|
||||
lastComment := comments[len(comments)-1]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user