mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-11-27 11:31:11 +00:00
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:
parent
236564f954
commit
8c16cf46e9
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue