From 5ef9def4032d6857b5031f8cb312146c67a420be Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 14 Jun 2015 14:00:48 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/srv/tests/base.py b/src/calibre/srv/tests/base.py index 08427532b1..5b856d0f8d 100644 --- a/src/calibre/srv/tests/base.py +++ b/src/calibre/srv/tests/base.py @@ -123,6 +123,9 @@ class LibraryServer(TestServer): from calibre.srv.loop import ServerLoop from calibre.srv.handler import Handler from calibre.srv.http_response import create_http_handler + kwargs['shutdown_timeout'] = kwargs.get('shutdown_timeout', 0.1) + kwargs['listen_on'] = kwargs.get('listen_on', 'localhost') + kwargs['port'] = kwargs.get('port', 0) opts = Options(**kwargs) self.libraries = libraries or (library_path,) self.handler = Handler(self.libraries, opts, testing=True)