mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove 5 second pause in ./mach test-unit
The pause is likely due to a Servo bug that I’m about to file, this does not fix the underlying bug.
This commit is contained in:
parent
fce44a2e13
commit
0739b5d57a
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ fn fetch_with_cors_cache(request: &mut Request, cache: &mut CorsCache) -> Respon
|
||||||
|
|
||||||
fn make_server<H: Handler + 'static>(handler: H) -> (Listening, ServoUrl) {
|
fn make_server<H: Handler + 'static>(handler: H) -> (Listening, ServoUrl) {
|
||||||
// this is a Listening server because of handle_threads()
|
// this is a Listening server because of handle_threads()
|
||||||
let server = Server::http("0.0.0.0:0").unwrap().handle_threads(handler, 1).unwrap();
|
let server = Server::http("0.0.0.0:0").unwrap().handle_threads(handler, 2).unwrap();
|
||||||
let url_string = format!("http://localhost:{}", server.socket.port());
|
let url_string = format!("http://localhost:{}", server.socket.port());
|
||||||
let url = ServoUrl::parse(&url_string).unwrap();
|
let url = ServoUrl::parse(&url_string).unwrap();
|
||||||
(server, url)
|
(server, url)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue