mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-27 07:55:03 +00:00
std::rt: Reduce the delay on a timer test. Slow
This commit is contained in:
parent
a4cc34fa12
commit
93156ab7e1
@ -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(||());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user