diff --git a/src/calibre/srv/tests/base.py b/src/calibre/srv/tests/base.py index ac3016a896..6b380fe686 100644 --- a/src/calibre/srv/tests/base.py +++ b/src/calibre/srv/tests/base.py @@ -143,3 +143,4 @@ class LibraryServer(TestServer): def __exit__(self, *args): self.loop.stop() self.handler.close() + self.join(self.loop.opts.shutdown_timeout)