Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
This commit is contained in:
parent
df9a78cd04
commit
33e8e82c4b
113 changed files with 272 additions and 282 deletions
|
@ -28,10 +28,10 @@ func Test_RegenerateSession(t *testing.T) {
|
|||
sess, err := auth.RegenerateSession(db.DefaultContext, "", key)
|
||||
assert.NoError(t, err)
|
||||
assert.EqualValues(t, key, sess.Key)
|
||||
assert.Len(t, sess.Data, 0)
|
||||
assert.Empty(t, sess.Data)
|
||||
|
||||
sess, err = auth.ReadSession(db.DefaultContext, key2)
|
||||
assert.NoError(t, err)
|
||||
assert.EqualValues(t, key2, sess.Key)
|
||||
assert.Len(t, sess.Data, 0)
|
||||
assert.Empty(t, sess.Data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue