diff options
author | TheFox0x7 <thefox0x7@gmail.com> | 2024-12-15 11:41:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-15 10:41:29 +0000 |
commit | 33e8e82c4b528db8efb1cf9fc4dbab2d9e21ace8 (patch) | |
tree | 6ee296e2ef469911d0db440100e1eb835945af89 /services/org | |
parent | df9a78cd04e364264c103cf3a92d94179cc1dd4f (diff) | |
download | gitea-33e8e82c4b528db8efb1cf9fc4dbab2d9e21ace8.tar.gz gitea-33e8e82c4b528db8efb1cf9fc4dbab2d9e21ace8.zip |
Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
Diffstat (limited to 'services/org')
-rw-r--r-- | services/org/team_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |