From 2affa5bf4e17399732464d067959b086dc9ac172 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 6 Aug 2013 12:37:00 +0530 Subject: [PATCH] Fix test failure on windows because of slowness --- src/calibre/db/tests/writing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/tests/writing.py b/src/calibre/db/tests/writing.py index 96e2bb0c34..19f6e70f48 100644 --- a/src/calibre/db/tests/writing.py +++ b/src/calibre/db/tests/writing.py @@ -343,12 +343,12 @@ class WritingTest(BaseTest): ae(sf('authors', {1:'author1 & author2', 2:'author1 & author2', 3:'author1 & author2'}), {1,2,3}) count = 6 while cache.dirty_queue_length() and count > 0: - mb.join(interval) + mb.join(2) count -= 1 af(cache.dirty_queue_length()) finally: mb.stop() - mb.join(interval) + mb.join(2) af(mb.is_alive()) from calibre.ebooks.metadata.opf2 import OPF for book_id in (1, 2, 3):