Skip to content

Commit 228fc6f

Browse files
author
raul-brainattica
committed
Refactor pointer
1 parent 610b409 commit 228fc6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit_tests/auth_backend_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ func (suite *AuthenticationBackendTestSuite) TestAuthenticate(c *C) {
5858

5959
func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectPass(c *C) {
6060
authBackend := authentication.InitJWTAuthenticationBackend()
61-
user := &models.User{
61+
user := models.User{
6262
Username: "haku",
6363
Password: "Password",
6464
}
65-
c.Assert(authBackend.Authenticate(user), Equals, false)
65+
c.Assert(authBackend.Authenticate(&user), Equals, false)
6666
}
6767

6868
func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectUsername(c *C) {

0 commit comments

Comments
 (0)