mirror of https://github.com/fafhrd91/actix-web
fmt
This commit is contained in:
parent
595d1a4a46
commit
da34277616
|
@ -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!(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue