chore: repo maintenance + no path dependencies (#991)

- Move `tokio` into its own directory.
- Remove `path` dependencies.
- Run tests with once with crates.io dep and once with patched dep.
This commit is contained in:
Carl Lerche
2019-03-19 14:58:59 -07:00
committed by GitHub
parent 85487727d4
commit cdde2e7a27
60 changed files with 194 additions and 169 deletions
+3 -4
View File
@@ -1,5 +1,4 @@
extern crate futures;
extern crate tokio;
extern crate tokio_executor;
extern crate tokio_timer;
@@ -8,13 +7,13 @@ mod support;
use support::*;
use futures::{prelude::*, sync::mpsc};
use tokio::util::StreamExt;
use tokio_timer::throttle::Throttle;
#[test]
fn throttle() {
mocked(|timer, _| {
let (tx, rx) = mpsc::unbounded();
let mut stream = rx.throttle(ms(1)).map_err(|e| panic!("{:?}", e));
let mut stream = Throttle::new(rx, ms(1));
assert_not_ready!(stream);
@@ -36,7 +35,7 @@ fn throttle() {
fn throttle_dur_0() {
mocked(|_, _| {
let (tx, rx) = mpsc::unbounded();
let mut stream = rx.throttle(ms(0)).map_err(|e| panic!("{:?}", e));
let mut stream = Throttle::new(rx, ms(0));
assert_not_ready!(stream);