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:
copilot-swe-agent[bot]
2026-02-02 18:00:57 +00:00
parent d2d6b9155b
commit a5ec35db16

View File

@@ -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]