From 51aa00210efd93c2cfaf89e5b378c45ea75804fe Mon Sep 17 00:00:00 2001 From: William Date: Sun, 21 Apr 2024 17:17:38 +0200 Subject: [PATCH] Fix test Signed-off-by: William --- internal/services/auth_service_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/services/auth_service_test.go b/internal/services/auth_service_test.go index 6d02f69..c60f849 100644 --- a/internal/services/auth_service_test.go +++ b/internal/services/auth_service_test.go @@ -42,7 +42,9 @@ func TestMain(m *testing.M) { os.Exit(code) } func TestLoginByUsernamePassword(t *testing.T) { - authService := NewAuthService(db, nil, nil) + userService := NewUserService(db) + EmailService := NewEmailService(true) + authService := NewAuthService(db, userService, EmailService) _, err := authService.LoginByUsernamePassword("john.doe", "password", "", "") if err != nil { t.Error("Failed to authenticate")