mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
3b308e3d41
commit
3fec63f0a4
@ -229,6 +229,7 @@ class TestHTTP(BaseTest):
|
|||||||
conn._HTTPConnection__state = httplib._CS_IDLE
|
conn._HTTPConnection__state = httplib._CS_IDLE
|
||||||
|
|
||||||
# Test closing
|
# Test closing
|
||||||
|
server.loop.opts.timeout = 10 # ensure socket is not closed because of timeout
|
||||||
conn.request('GET', '/close', headers={'Connection':'close'})
|
conn.request('GET', '/close', headers={'Connection':'close'})
|
||||||
r = conn.getresponse()
|
r = conn.getresponse()
|
||||||
self.ae(server.loop.num_active_connections, 1)
|
self.ae(server.loop.num_active_connections, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user