mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:43:10 +02:00
Make timeout test a bit more robust
This commit is contained in:
parent
881d2a4ae9
commit
ec83c5058f
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ def test_workers(self):
|
|||
self.ae(0, sum(int(w.is_alive()) for w in server.loop.pool.workers))
|
||||
# Test shutdown with hung worker
|
||||
block = Event()
|
||||
with TestServer(lambda data:block.wait(), worker_count=3, shutdown_timeout=0.1, timeout=0.01) as server:
|
||||
with TestServer(lambda data:block.wait(), worker_count=3, shutdown_timeout=0.1, timeout=0.1) as server:
|
||||
pool = server.loop.pool
|
||||
self.ae(3, sum(int(w.is_alive()) for w in pool.workers))
|
||||
conn = server.connect()
|
||||
|
|
|
|||
Loading…
Reference in a new issue