This commit is contained in:
Ali MJ Al-Nasrawy 2021-11-25 21:45:51 +03:00
parent 595d1a4a46
commit da34277616
1 changed files with 3 additions and 3 deletions

View File

@ -856,14 +856,14 @@ mod tests {
use actix_http::h1::Payload; use actix_http::h1::Payload;
use actix_web::http::header::{DispositionParam, DispositionType}; use actix_web::http::header::{DispositionParam, DispositionType};
use actix_web::rt;
use actix_web::test::TestRequest; use actix_web::test::TestRequest;
use actix_web::FromRequest; use actix_web::FromRequest;
use actix_web::rt;
use bytes::Bytes; use bytes::Bytes;
use futures_util::{future::lazy, StreamExt}; use futures_util::{future::lazy, StreamExt};
use std::time::Duration;
use tokio::sync::mpsc; use tokio::sync::mpsc;
use tokio_stream::wrappers::UnboundedReceiverStream; use tokio_stream::wrappers::UnboundedReceiverStream;
use std::time::Duration;
#[actix_rt::test] #[actix_rt::test]
async fn test_boundary() { async fn test_boundary() {
@ -1306,7 +1306,7 @@ mod tests {
// should fail immediately // should fail immediately
match field.next().await { match field.next().await {
Some(Err(MultipartError::NotConsumed)) => {}, Some(Err(MultipartError::NotConsumed)) => {}
_ => panic!(), _ => panic!(),
}; };
} }