std::rt: Reduce the delay on a timer test. Slow

This commit is contained in:
Brian Anderson 2013-06-16 19:24:51 -07:00
parent a4cc34fa12
commit 93156ab7e1

View File

@ -143,7 +143,7 @@ mod test {
let count_ptr: *mut int = &mut count;
let mut loop_ = Loop::new();
let mut timer = TimerWatcher::new(&mut loop_);
do timer.start(10, 20) |timer, status| {
do timer.start(1, 2) |timer, status| {
assert!(status.is_none());
unsafe {
*count_ptr += 1;
@ -166,7 +166,7 @@ mod test {
// Restart the original timer
let mut timer = timer;
do timer.start(10, 0) |timer, _| {
do timer.start(1, 0) |timer, _| {
unsafe { *count_ptr += 1; }
timer.close(||());
}