tests for link in email & subscription status

This commit is contained in:
Andre Heber
2024-02-26 21:25:26 +01:00
parent ff0fb28e4b
commit f4f16d621d
7 changed files with 133 additions and 12 deletions

View File

@ -48,8 +48,8 @@ impl Application {
timeout,
);
let port = config.application.port;
let listener = TcpListener::bind(format!("{}:{}", config.application.host, port))?;
let listener = TcpListener::bind(format!("{}:{}", config.application.host, config.application.port))?;
let port = listener.local_addr().unwrap().port();
let server = run(listener, connection_pool, email_client)?;
Ok(Self { port, server })
}