Auto merge of #19437 - servo:SimonSapin-patch-1, r=jdm

Remove 5 second pause in `./mach test-unit`

Details of why this pause happens in the first place are at https://github.com/servo/servo/issues/19439.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19437)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-11-30 12:15:45 -06:00 committed by GitHub
commit ba0240a388

View file

@ -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) {
// 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 = ServoUrl::parse(&url_string).unwrap();
(server, url)