chore(lib): individually disable tests and examples that aren't updated

This commit is contained in:
Sean McArthur
2019-07-12 13:29:57 -07:00
parent f93463b3d9
commit 5da17df97f
29 changed files with 120 additions and 61 deletions

View File

@@ -884,7 +884,7 @@ impl State {
#[cfg(test)]
//TODO: rewrite these using dispatch
mod tests {
/*
#[cfg(feature = "nightly")]
#[bench]
fn bench_read_head_short(b: &mut ::test::Bencher) {
@@ -918,6 +918,7 @@ mod tests {
conn.state.reading = Reading::Init;
});
}
*/
/*
use futures::{Async, Future, Stream, Sink};
use futures::future;

View File

@@ -319,6 +319,10 @@ impl StdError for IncompleteBody {
#[cfg(test)]
mod tests {
// FIXME: re-implement tests with `async/await`, this import should
// trigger a warning to remind us
use crate::Error;
/*
use std::io;
use std::io::Write;
use super::Decoder;
@@ -535,5 +539,5 @@ mod tests {
let content = "foobar";
all_async_cases(content, content, Decoder::eof());
}
*/
}

View File

@@ -598,6 +598,10 @@ where
#[cfg(test)]
mod tests {
// FIXME: re-implement tests with `async/await`, this import should
// trigger a warning to remind us
use crate::Error;
/*
extern crate pretty_env_logger;
use super::*;
@@ -656,4 +660,5 @@ mod tests {
Ok::<(), ()>(())
}).wait().unwrap();
}
*/
}

View File

@@ -650,6 +650,10 @@ impl<T: Buf> Buf for BufDeque<T> {
#[cfg(test)]
mod tests {
// FIXME: re-implement tests with `async/await`, this import should
// trigger a warning to remind us
use crate::Error;
/*
use super::*;
use std::io::Read;
use crate::mock::AsyncIo;
@@ -657,8 +661,7 @@ mod tests {
#[cfg(feature = "nightly")]
use test::Bencher;
#[cfg(test)]
impl<T: Read> MemRead for crate::mock::AsyncIo<T> {
impl<T: Read> MemRead for AsyncIo<T> {
fn read_mem(&mut self, len: usize) -> Poll<Bytes, io::Error> {
let mut v = vec![0; len];
let n = try_nb!(self.read(v.as_mut_slice()));
@@ -900,4 +903,5 @@ mod tests {
write_buf.headers.bytes.clear();
})
}
*/
}