Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros.

This commit is contained in:
Luca Palmieri 2021-12-26 16:53:58 +01:00
parent 6478b7dba4
commit 2e08eefb54

View file

@ -37,7 +37,7 @@ async fn create_confirmed_subscriber(app: &TestApp) {
.unwrap();
}
#[actix_rt::test]
#[tokio::test]
async fn newsletters_are_not_delivered_to_unconfirmed_subscribers() {
// Arrange
let app = spawn_app().await;
@ -64,7 +64,7 @@ async fn newsletters_are_not_delivered_to_unconfirmed_subscribers() {
// Mock verifies on Drop that we haven't sent the newsletter email
}
#[actix_rt::test]
#[tokio::test]
async fn newsletters_are_delivered_to_confirmed_subscribers() {
// Arrange
let app = spawn_app().await;
@ -92,7 +92,7 @@ async fn newsletters_are_delivered_to_confirmed_subscribers() {
// Mock verifies on Drop that we have sent the newsletter email
}
#[actix_rt::test]
#[tokio::test]
async fn newsletters_returns_400_for_invalid_data() {
// Arrange
let app = spawn_app().await;