test: make email client tests better
This commit is contained in:
parent
170f34738b
commit
b61f02c03f
5 changed files with 81 additions and 39 deletions
|
|
@ -153,10 +153,12 @@ async fn spawn_app() -> TestApp {
|
|||
.email_client
|
||||
.sender()
|
||||
.expect("Invalid sender email address.");
|
||||
let timeout = configuration.email_client.timeout();
|
||||
let email_client = EmailClient::new(
|
||||
configuration.email_client.base_url,
|
||||
sender_email,
|
||||
configuration.email_client.authorization_token,
|
||||
timeout,
|
||||
);
|
||||
|
||||
let service = learn_axum::startup::app(connection_pool.clone(), email_client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue