From 0739b5d57a3c29a23cc2e8910892d7d0e475448b Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 30 Nov 2017 17:25:49 +0100 Subject: [PATCH] Remove 5 second pause in `./mach test-unit` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pause is likely due to a Servo bug that I’m about to file, this does not fix the underlying bug. --- tests/unit/net/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/net/lib.rs b/tests/unit/net/lib.rs index 497db8f6b30..1d34d700a60 100644 --- a/tests/unit/net/lib.rs +++ b/tests/unit/net/lib.rs @@ -103,7 +103,7 @@ fn fetch_with_cors_cache(request: &mut Request, cache: &mut CorsCache) -> Respon fn make_server(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)