Skip to content

Commit

Permalink
Fix test_input_detector_returns_500() status code
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Devino <mateus@mdevino.com>
  • Loading branch information
mdevino committed Mar 3, 2025
1 parent 83526a2 commit b27a6e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/streaming_classification_with_gen_nlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,8 @@ async fn test_input_detector_returns_500() -> Result<(), anyhow::Error> {
contents: vec!["This should return a 500".into()],
detector_params: DetectorParams::new(),
}),
MockResponse::json(&expected_detector_error).with_code(StatusCode::NOT_FOUND),
MockResponse::json(&expected_detector_error)
.with_code(StatusCode::INTERNAL_SERVER_ERROR),
),
);

Expand Down

0 comments on commit b27a6e0

Please sign in to comment.