Fixed tests
This commit is contained in:
parent
f94bbf023c
commit
960d72aa1b
2 changed files with 5 additions and 1 deletions
|
@ -75,6 +75,11 @@ func CreateUser(user User) (newUser User, err error) {
|
|||
return User{}, err
|
||||
}
|
||||
|
||||
// Dont send a mail if we're testing
|
||||
if IsTesting {
|
||||
return newUserOut, err
|
||||
}
|
||||
|
||||
// Send the user a mail with a link to confirm the mail
|
||||
data := map[string]interface{}{
|
||||
"User": newUserOut,
|
||||
|
|
|
@ -133,7 +133,6 @@ func TestUserPasswordReset(t *testing.T) {
|
|||
|
||||
// Try resetting it
|
||||
reset := &PasswordReset{
|
||||
UserID: 1,
|
||||
Token: userWithToken.PasswordResetToken,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue