diff --git a/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs b/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs index 1f7f1eecd..2b66b5fa1 100644 --- a/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs +++ b/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs @@ -28,9 +28,11 @@ async fn handle_request(body: Vec, content_type_str: String) -> Vec>(multer::bytes::Bytes::copy_from_slice(body.as_slice())) } - ); + let stream = futures::stream::once(async move { + Ok::<_, Box>(multer::bytes::Bytes::copy_from_slice( + body.as_slice(), + )) + }); let mut mp = Multipart::new(stream, boundary); let mut fields = Vec::new(); @@ -40,9 +42,9 @@ async fn handle_request(body: Vec, content_type_str: String) -> Vec