mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 14:06:37 +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
6478b7dba4
commit
2e08eefb54
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue