From f8f99ec0c7190c4f1793bcf189d439f9085393c6 Mon Sep 17 00:00:00 2001 From: Christopher Armstrong Date: Thu, 8 Feb 2018 14:55:47 -0600 Subject: [PATCH] Disable signals in HttpServers started by the tests. (#69) Something is wrong with signals on windows. This change causes the unit tests to pass on Windows. --- src/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.rs b/src/test.rs index 39f8d605d..1440ba9df 100644 --- a/src/test.rs +++ b/src/test.rs @@ -87,7 +87,7 @@ impl TestServer { let local_addr = tcp.local_addr().unwrap(); let tcp = TcpListener::from_listener(tcp, &local_addr, Arbiter::handle()).unwrap(); - HttpServer::new(factory).start_incoming(tcp.incoming(), false); + HttpServer::new(factory).disable_signals().start_incoming(tcp.incoming(), false); tx.send((Arbiter::system(), local_addr)).unwrap(); let _ = sys.run(); @@ -124,7 +124,7 @@ impl TestServer { let mut app = TestApp::new(state()); config(&mut app); app} - ).start_incoming(tcp.incoming(), false); + ).disable_signals().start_incoming(tcp.incoming(), false); tx.send((Arbiter::system(), local_addr)).unwrap(); let _ = sys.run();