summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_user_info_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handler_user_info_test.go')
-rw-r--r--internal/handlers/handler_user_info_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/handlers/handler_user_info_test.go b/internal/handlers/handler_user_info_test.go
index 2d3c20286..4d925787c 100644
--- a/internal/handlers/handler_user_info_test.go
+++ b/internal/handlers/handler_user_info_test.go
@@ -22,7 +22,7 @@ func (s *FetchSuite) SetupTest() {
s.mock = mocks.NewMockAutheliaCtx(s.T())
// Set the initial user session.
userSession := s.mock.Ctx.GetSession()
- userSession.Username = "john"
+ userSession.Username = testUsername
userSession.AuthenticationLevel = 1
s.mock.Ctx.SaveSession(userSession) //nolint:errcheck // TODO: Legacy code, consider refactoring time permitting.
}
@@ -90,7 +90,7 @@ func TestMethodSetToU2F(t *testing.T) {
mock := mocks.NewMockAutheliaCtx(t)
// Set the initial user session.
userSession := mock.Ctx.GetSession()
- userSession.Username = "john"
+ userSession.Username = testUsername
userSession.AuthenticationLevel = 1
mock.Ctx.SaveSession(userSession) //nolint:errcheck // TODO: Legacy code, consider refactoring time permitting.
@@ -168,7 +168,7 @@ func (s *SaveSuite) SetupTest() {
s.mock = mocks.NewMockAutheliaCtx(s.T())
// Set the initial user session.
userSession := s.mock.Ctx.GetSession()
- userSession.Username = "john"
+ userSession.Username = testUsername
userSession.AuthenticationLevel = 1
s.mock.Ctx.SaveSession(userSession) //nolint:errcheck // TODO: Legacy code, consider refactoring time permitting.
}