adjust created user's email in test
This commit is contained in:
parent
ea4320cfb5
commit
d1aa5af564
|
@ -316,7 +316,7 @@ async fn admin() {
|
||||||
|
|
||||||
let user_opt = CreateUserOption {
|
let user_opt = CreateUserOption {
|
||||||
created_at: None,
|
created_at: None,
|
||||||
email: "user@noreply.example.org".into(),
|
email: "pipis@noreply.example.org".into(),
|
||||||
full_name: None,
|
full_name: None,
|
||||||
login_name: None,
|
login_name: None,
|
||||||
must_change_password: None,
|
must_change_password: None,
|
||||||
|
@ -360,7 +360,7 @@ async fn admin() {
|
||||||
assert!(
|
assert!(
|
||||||
users
|
users
|
||||||
.iter()
|
.iter()
|
||||||
.find(|u| u.email.as_ref().unwrap() == "user@noreply.example.org")
|
.find(|u| u.email.as_ref().unwrap() == "pipis@noreply.example.org")
|
||||||
.is_some(),
|
.is_some(),
|
||||||
"could not find new user"
|
"could not find new user"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue