Skip to content

Commit

Permalink
fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Mar 19, 2024
1 parent a4a971f commit 73e9341
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/async_impl/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Form {
// then append form data followed by terminating CRLF
boundary
.chain(header)
.chain(part.value.into_stream())
.chain(part.value)
.chain(stream::once(future::ready(Ok("\r\n".into()))))
}

Expand Down Expand Up @@ -538,7 +538,7 @@ mod tests {
.enable_all()
.build()
.expect("new rt");
let body = form.stream().into_stream();
let body = form.stream();
let s = body.map_ok(|try_c| try_c.to_vec()).try_concat();

let out = rt.block_on(s);
Expand Down Expand Up @@ -588,7 +588,7 @@ mod tests {
.enable_all()
.build()
.expect("new rt");
let body = form.stream().into_stream();
let body = form.stream();
let s = body.map(|try_c| try_c.map(|r| r.to_vec())).try_concat();

let out = rt.block_on(s).unwrap();
Expand Down Expand Up @@ -620,7 +620,7 @@ mod tests {
.enable_all()
.build()
.expect("new rt");
let body = form.stream().into_stream();
let body = form.stream();
let s = body.map(|try_c| try_c.map(|r| r.to_vec())).try_concat();

let out = rt.block_on(s).unwrap();
Expand Down

0 comments on commit 73e9341

Please sign in to comment.