From 3fec63f0a44ce6ad78f11700c660a0a847dfb46b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 27 May 2015 18:40:35 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/srv/tests/http.py b/src/calibre/srv/tests/http.py index bf8bb67da3..0faed278e8 100644 --- a/src/calibre/srv/tests/http.py +++ b/src/calibre/srv/tests/http.py @@ -229,6 +229,7 @@ class TestHTTP(BaseTest): conn._HTTPConnection__state = httplib._CS_IDLE # Test closing + server.loop.opts.timeout = 10 # ensure socket is not closed because of timeout conn.request('GET', '/close', headers={'Connection':'close'}) r = conn.getresponse() self.ae(server.loop.num_active_connections, 1)