Fixed tests

This commit is contained in:
kolaente 2018-10-28 17:30:10 +01:00
parent f94bbf023c
commit 960d72aa1b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 5 additions and 1 deletions

View file

@ -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,

View file

@ -133,7 +133,6 @@ func TestUserPasswordReset(t *testing.T) {
// Try resetting it
reset := &PasswordReset{
UserID: 1,
Token: userWithToken.PasswordResetToken,
}