From 33e8e82c4b528db8efb1cf9fc4dbab2d9e21ace8 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sun, 15 Dec 2024 11:41:29 +0100 Subject: Enable tenv and testifylint rules (#32852) Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842 --- services/org/team_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/org') diff --git a/services/org/team_test.go b/services/org/team_test.go index 58b8e0803c..98addac8f8 100644 --- a/services/org/team_test.go +++ b/services/org/team_test.go @@ -121,7 +121,7 @@ func TestDeleteTeam(t *testing.T) { repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 3}) accessMode, err := access_model.AccessLevel(db.DefaultContext, user, repo) assert.NoError(t, err) - assert.True(t, accessMode < perm.AccessModeWrite) + assert.Less(t, accessMode, perm.AccessModeWrite) } func TestAddTeamMember(t *testing.T) { -- cgit v1.2.3