Fix compiletest to use Duration
This commit is contained in:
parent
77cdaf018c
commit
80d32438d6
1 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ use std::os;
|
|||
use std::str;
|
||||
use std::string::String;
|
||||
use std::task;
|
||||
use std::time::Duration;
|
||||
use test::MetricMap;
|
||||
|
||||
pub fn run(config: Config, testfile: String) {
|
||||
|
|
@ -400,7 +401,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
|
|||
.expect(format!("failed to exec `{}`", config.adb_path).as_slice());
|
||||
loop {
|
||||
//waiting 1 second for gdbserver start
|
||||
timer::sleep(1000);
|
||||
timer::sleep(Duration::milliseconds(1000));
|
||||
let result = task::try(proc() {
|
||||
tcp::TcpStream::connect("127.0.0.1", 5039).unwrap();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue