From 228fc6fe8df6632c7ea10e960bbc1ca34c4f4d18 Mon Sep 17 00:00:00 2001 From: raul-brainattica Date: Thu, 16 Apr 2015 10:46:48 +0200 Subject: [PATCH] Refactor pointer --- tests/unit_tests/auth_backend_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/auth_backend_test.go b/tests/unit_tests/auth_backend_test.go index 5fdbcc1..f41c142 100644 --- a/tests/unit_tests/auth_backend_test.go +++ b/tests/unit_tests/auth_backend_test.go @@ -58,11 +58,11 @@ func (suite *AuthenticationBackendTestSuite) TestAuthenticate(c *C) { func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectPass(c *C) { authBackend := authentication.InitJWTAuthenticationBackend() - user := &models.User{ + user := models.User{ Username: "haku", Password: "Password", } - c.Assert(authBackend.Authenticate(user), Equals, false) + c.Assert(authBackend.Authenticate(&user), Equals, false) } func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectUsername(c *C) {