Skip to content

Commit 80d3243

Browse files
committed
Fix compiletest to use Duration
1 parent 77cdaf0 commit 80d3243

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiletest/runtest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use std::os;
3030
use std::str;
3131
use std::string::String;
3232
use std::task;
33+
use std::time::Duration;
3334
use test::MetricMap;
3435

3536
pub fn run(config: Config, testfile: String) {
@@ -400,7 +401,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
400401
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
401402
loop {
402403
//waiting 1 second for gdbserver start
403-
timer::sleep(1000);
404+
timer::sleep(Duration::milliseconds(1000));
404405
let result = task::try(proc() {
405406
tcp::TcpStream::connect("127.0.0.1", 5039).unwrap();
406407
});

0 commit comments

Comments
 (0)