-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOISSUE - Fix Update User #959
Conversation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #959 +/- ##
=======================================
Coverage 83.75% 83.75%
=======================================
Files 75 75
Lines 5288 5288
=======================================
Hits 4429 4429
Misses 590 590
Partials 269 269
Continue to review full report at Codecov.
|
users/service_test.go
Outdated
func TestUpdateUser(t *testing.T) { | ||
svc := newService() | ||
svc.Register(context.Background(), user) | ||
key, _ := svc.Login(context.Background(), user) | ||
nonExistingKey, _ := svc.Login(context.Background(), nonExistingUser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you cant use login here, you havent registered user, this will fail
to create key
j := jwt.New("secret")
key, _ := j.TemporaryKey(user.Email)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mteodor I agree with you but let's just remove this test. No need to create a valid token for this test.
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* NOISSUE - Fix Update User Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm duplicated test Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix typo Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: Manuel Imperiale manuel.imperiale@gmail.com