Skip to content

Commit 59f7169

Browse files
committed
use valid email pattern in test
1 parent 3be2b55 commit 59f7169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/user.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ fn test_confirm_user_email() {
514514

515515
// Simulate logging in via GitHub. Don't use app.db_new_user because it inserts a verified
516516
// email directly into the database and we want to test the verification flow here.
517-
let email = "cow@mammals@milk";
517+
let email = "[email protected]";
518518

519519
let user = app.db(|conn| {
520520
let u = NewUser {
@@ -535,7 +535,7 @@ fn test_confirm_user_email() {
535535
user.confirm_email(&email_token);
536536

537537
let json = user.show_me();
538-
assert_eq!(json.user.email.unwrap(), "cow@mammals@milk");
538+
assert_eq!(json.user.email.unwrap(), "[email protected]");
539539
assert!(json.user.email_verified);
540540
assert!(json.user.email_verification_sent);
541541
}

0 commit comments

Comments
 (0)