From 3380048b011c8f9289f16c4e39b72013424923cf Mon Sep 17 00:00:00 2001 From: mihna123 Date: Sat, 29 Aug 2026 23:38:34 +0200 Subject: user: add bcryptCost to service constructor in TestRegisterRepositotyError --- internal/user/service_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/user/service_test.go') diff --git a/internal/user/service_test.go b/internal/user/service_test.go index 938d2c3..16353d2 100644 --- a/internal/user/service_test.go +++ b/internal/user/service_test.go @@ -79,7 +79,11 @@ func TestRegisterExistingUser(t *testing.T) { } func TestRegisterRepositoryError(t *testing.T) { - s := &Service{repository: &RepositoryMock{err: errors.New("db down")}} + s := &Service{ + repository: &RepositoryMock{err: errors.New("db down")}, + bcryptCost: bcrypt.MinCost, + } + in := &RegisterInput{Username: "bob", Email: "b@b.com", Password: "thisissecure"} _, err := s.Register(in) -- cgit v1.3.1