diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/user/service_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
