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 236564f954
commit 8c16cf46e9

View file

@ -36,7 +36,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;
@ -63,7 +63,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;
@ -91,7 +91,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;