mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-11-21 16:21:01 +00:00
Fix integration test.
This commit is contained in:
parent
9dd3b0590a
commit
6db241eef6
1 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ async fn subscribe_returns_a_400_when_data_is_missing() {
|
|||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn subscribe_returns_a_200_when_fields_are_present_but_empty() {
|
||||
async fn subscribe_returns_a_400_when_fields_are_present_but_invalid() {
|
||||
// Arrange
|
||||
let app = spawn_app().await;
|
||||
let client = reqwest::Client::new();
|
||||
|
@ -165,9 +165,9 @@ async fn subscribe_returns_a_200_when_fields_are_present_but_empty() {
|
|||
|
||||
// Assert
|
||||
assert_eq!(
|
||||
200,
|
||||
400,
|
||||
response.status().as_u16(),
|
||||
"The API did not return a 200 OK when the payload was {}.",
|
||||
"The API did not return a 400 Bad Request when the payload was {}.",
|
||||
description
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue