@@ -34,7 +34,7 @@ func TestIsEmailUsed(t *testing.T) {
34
34
35
35
isExist , _ := IsEmailUsed ("" )
36
36
assert .True (t , isExist )
37
- isExist , _ = IsEmailUsed ("user11 @example.com" )
37
+ isExist , _ = IsEmailUsed ("user1-1 @example.com" )
38
38
assert .True (t , isExist )
39
39
isExist ,
_ = IsEmailUsed (
"[email protected] " )
40
40
assert .False (t , isExist )
@@ -84,12 +84,12 @@ func TestDeleteEmailAddress(t *testing.T) {
84
84
assert .NoError (t , DeleteEmailAddress (& EmailAddress {
85
85
UID : int64 (1 ),
86
86
ID : int64 (1 ),
87
- Email : "user11 @example.com" ,
87
+ Email : "user1-1 @example.com" ,
88
88
}))
89
89
90
90
assert .NoError (t , DeleteEmailAddress (& EmailAddress {
91
91
UID : int64 (1 ),
92
- Email : "user12 @example.com" ,
92
+ Email : "user1-2 @example.com" ,
93
93
}))
94
94
95
95
// Email address does not exist
@@ -112,7 +112,7 @@ func TestDeleteEmailAddresses(t *testing.T) {
112
112
}
113
113
emails [1 ] = & EmailAddress {
114
114
UID : int64 (2 ),
115
- Email : "user21 @example.com" ,
115
+ Email : "user2-1 @example.com" ,
116
116
}
117
117
assert .NoError (t , DeleteEmailAddresses (emails ))
118
118
@@ -132,7 +132,7 @@ func TestMakeEmailPrimary(t *testing.T) {
132
132
assert .Equal (t , ErrEmailNotExist .Error (), err .Error ())
133
133
134
134
email = & EmailAddress {
135
- Email : "user11 @example.com" ,
135
+ Email : "user1-1 @example.com" ,
136
136
}
137
137
err = MakeEmailPrimary (email )
138
138
assert .Error (t , err )
@@ -161,7 +161,7 @@ func TestActivate(t *testing.T) {
161
161
email := & EmailAddress {
162
162
ID : int64 (1 ),
163
163
UID : int64 (1 ),
164
- Email : "user11 @example.com" ,
164
+ Email : "user1-1 @example.com" ,
165
165
}
166
166
assert .NoError (t , email .Activate ())
167
167
0 commit comments