summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authormihna123 <mihailonvojinovic@gmail.com>2026-08-29 23:45:04 +0200
committermihna123 <mihailonvojinovic@gmail.com>2026-08-29 23:45:04 +0200
commitc46bd71473d59f8a18bca0ed12f67886bff4c267 (patch)
treebfe7afbe4a613b600239bff02d8eb724184af019 /internal
parent50b524658c9dc66af10790a1b496910273802303 (diff)
downloadopenstore-c46bd71473d59f8a18bca0ed12f67886bff4c267.tar.gz
openstore-c46bd71473d59f8a18bca0ed12f67886bff4c267.zip
user: fail now when register fails in order not to dereference a nil value
Diffstat (limited to 'internal')
-rw-r--r--internal/user/service_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/user/service_test.go b/internal/user/service_test.go
index 8c724ff..f3dcfd6 100644
--- a/internal/user/service_test.go
+++ b/internal/user/service_test.go
@@ -106,7 +106,7 @@ func TestSuccessfulRegister(t *testing.T) {
}
usr, err := s.Register(in)
if err != nil {
- t.Errorf("register with good input failed: %+v", in)
+ t.Fatalf("register with good input failed: %+v", in)
}
err = bcrypt.CompareHashAndPassword([]byte(usr.passwordHash), []byte(in.Password))