mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
timer: finish updating timer (#1222)
* timer: restructure feature flags * update timer tests * Add `async-traits` to CI This also disables a buggy `threadpool` test. This test should be fixed in the future. Refs #1225
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#![deny(warnings, rust_2018_idioms)]
|
||||
#![cfg(feature = "broken")]
|
||||
|
||||
use std::time::Instant;
|
||||
use tokio_executor;
|
||||
use tokio_timer::clock;
|
||||
use tokio_timer::clock::*;
|
||||
|
||||
@@ -40,9 +38,7 @@ fn execution_context() {
|
||||
let now = ConstNow(Instant::now());
|
||||
let clock = Clock::new_with_now(now);
|
||||
|
||||
let mut enter = tokio_executor::enter().unwrap();
|
||||
|
||||
with_default(&clock, &mut enter, |_| {
|
||||
with_default(&clock, || {
|
||||
let a = Instant::now();
|
||||
let b = clock::now();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user