mirror of
https://github.com/servo/servo.git
synced 2025-10-02 01:29:15 +01:00
Use thread::sleep instead of deprecated sleep_ms
Similarly, change one instance of `thread::park_timeout_ms`. Fixes #8694
This commit is contained in:
parent
b737e4e0fa
commit
3659218c59
10 changed files with 65 additions and 25 deletions
5
tests/reftest.rs
vendored
5
tests/reftest.rs
vendored
|
@ -25,7 +25,8 @@ use std::io::{self, Read, Result, Write};
|
|||
use std::path::{Path, PathBuf};
|
||||
use std::process;
|
||||
use std::process::{Command};
|
||||
use std::thread::sleep_ms;
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use test::run_tests_console;
|
||||
use test::{AutoColor, DynTestName, DynTestFn, TestDesc, TestOpts, TestDescAndFn, ShouldPanic};
|
||||
use url::Url;
|
||||
|
@ -124,7 +125,7 @@ fn run(test_opts: TestOpts, all_tests: Vec<TestDescAndFn>,
|
|||
};
|
||||
|
||||
// Wait for the shell to launch or to fail
|
||||
sleep_ms(1000);
|
||||
thread::sleep(Duration::from_secs(1));
|
||||
child.kill().unwrap();
|
||||
let output = try!(child.wait_with_output());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue