mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix failing test
This commit is contained in:
parent
a165b34d3c
commit
4d2a7a20af
@ -104,6 +104,8 @@ class FTSAPITest(BaseTest):
|
|||||||
|
|
||||||
def test_fts_triggers(self):
|
def test_fts_triggers(self):
|
||||||
cache = self.init_cache()
|
cache = self.init_cache()
|
||||||
|
# the cache fts jobs will clear dirtied flag so disable it
|
||||||
|
cache.queue_next_fts_job = lambda *a: None
|
||||||
fts = cache.enable_fts(start_pool=False)
|
fts = cache.enable_fts(start_pool=False)
|
||||||
self.ae(fts.all_currently_dirty(), [(1, 'FMT1'), (1, 'FMT2'), (2, 'FMT1')])
|
self.ae(fts.all_currently_dirty(), [(1, 'FMT1'), (1, 'FMT2'), (2, 'FMT1')])
|
||||||
fts.dirty_existing()
|
fts.dirty_existing()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user