diff options
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 7475c7020..da7d6598a 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -1495,7 +1495,6 @@ pub mod tests { enum Mode { Async, - AsyncUnref, AsyncZeroCopy(bool), } @@ -1520,16 +1519,6 @@ pub mod tests { let resp = (0, serialize_op_result(Ok(43), rc_op_state)); Op::Async(Box::pin(futures::future::ready(resp))) } - Mode::AsyncUnref => { - let control: u8 = payload.deserialize().unwrap(); - assert_eq!(control, 42); - let fut = async { - // This future never finish. - futures::future::pending::<()>().await; - (0, serialize_op_result(Ok(43), rc_op_state)) - }; - Op::AsyncUnref(Box::pin(fut)) - } Mode::AsyncZeroCopy(has_buffer) => { assert_eq!(buf.is_some(), has_buffer); if let Some(buf) = buf { |