diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-10 11:39:53 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-14 10:14:19 -0700 |
| commit | 700e627cf727873a472b1876238aac10b932258b (patch) | |
| tree | 2869ad99d029315b6b7170ab3685b7f3a9bd1144 /src/libstd/thread | |
| parent | dddfbe0441476cd366943fcf14f4896e6bb09851 (diff) | |
| download | rust-700e627cf727873a472b1876238aac10b932258b.tar.gz rust-700e627cf727873a472b1876238aac10b932258b.zip | |
test: Fixup many library unit tests
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 0e5fee27ffe..c47e2389432 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -728,7 +728,6 @@ mod test { use any::Any; use sync::mpsc::{channel, Sender}; use result; - use std::old_io::{ChanReader, ChanWriter}; use super::{Builder}; use thread; use thunk::Thunk; @@ -967,13 +966,11 @@ mod test { #[test] fn test_park_timeout_unpark_called_other_thread() { - use std::old_io; - for _ in 0..10 { let th = thread::current(); let _guard = thread::spawn(move || { - old_io::timer::sleep(Duration::milliseconds(50)); + super::sleep_ms(50); th.unpark(); }); |
