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:
Simon Sapin 2017-11-30 17:25:49 +01:00 committed by GitHub
parent fce44a2e13
commit 0739b5d57a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) { 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)