mirror of
https://github.com/kristoferssolo/zero2prod.git
synced 2026-02-04 06:42:07 +00:00
Finished chapter 7.2
This commit is contained in:
@@ -146,10 +146,12 @@ async fn spawn_app() -> TestApp {
|
||||
.email_client
|
||||
.sender()
|
||||
.expect("Invalid sender email adress");
|
||||
let timeout = config.email_client.timeout();
|
||||
let email_client = EmailClient::new(
|
||||
config.email_client.base_url,
|
||||
sender_email,
|
||||
config.email_client.auth_token,
|
||||
timeout,
|
||||
);
|
||||
|
||||
let _ = tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user