Skip to content

Commit a543c8e

Browse files
committed
test(body): remove concat test for Body
1 parent 46749c1 commit a543c8e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ pin-utils = "0.1.0-alpha.4"
3838
time = "0.1"
3939
tokio = { git = "https://github.com/tokio-rs/tokio", optional = true, default-features = false, features = ["rt-full"] }
4040
tokio-buf = "0.1"
41-
tokio-current-thread = { git = "https://github.com/tokio-rs/tokio" }
4241
tokio-executor = { git = "https://github.com/tokio-rs/tokio" }
4342
tokio-io = { git = "https://github.com/tokio-rs/tokio" }
4443
tokio-reactor = { git = "https://github.com/tokio-rs/tokio", optional = true }

src/body/body.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -547,22 +547,3 @@ impl Sink for Sender {
547547
}
548548
}
549549
*/
550-
551-
#[cfg(test)]
552-
mod tests {
553-
// FIXME: re-implement tests with `async/await`, this import should
554-
// trigger a warning to remind us
555-
use crate::Error;
556-
use futures_util::try_stream::TryStreamExt;
557-
use tokio::runtime::current_thread::Runtime;
558-
559-
use super::*;
560-
#[test]
561-
fn test_body_stream_concat() {
562-
let body = Body::from("hello world");
563-
564-
let mut rt = Runtime::new().unwrap();
565-
let total = rt.block_on(body.try_concat()).unwrap();
566-
assert_eq!(total.as_ref(), b"hello world");
567-
}
568-
}

0 commit comments

Comments
 (0)