Skip to content

Commit 8d9f670

Browse files
committed
std: Do less work in the timer stress tests
1 parent 1c1af99 commit 8d9f670

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/timer.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ mod test {
143143

144144
#[test]
145145
fn test_gl_timer_sleep_stress1() {
146-
iter::repeat(500u) {||
146+
iter::repeat(200u) {||
147147
sleep(1u);
148148
}
149149
}
@@ -153,12 +153,12 @@ mod test {
153153
let po = comm::port();
154154
let ch = comm::chan(po);
155155

156-
let repeat = 100u;
156+
let repeat = 20u;
157157
let spec = {
158158

159-
[(1u, 100u),
159+
[(1u, 20u),
160160
(10u, 10u),
161-
(100u, 2u)]
161+
(20u, 2u)]
162162

163163
};
164164

0 commit comments

Comments
 (0)