提交 93156ab7 编写于 作者: B Brian Anderson

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

上级 a4cc34fa
......@@ -143,7 +143,7 @@ fn repeat_stop() {
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 @@ fn repeat_stop() {
// 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(||());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册