This commit is contained in:
Kovid Goyal 2022-05-02 18:05:46 +05:30
parent 0f79dbfb47
commit 04f6ba2b64
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -144,6 +144,7 @@ class FTSAPITest(BaseTest):
self.ae({x['text'] for x in cache.fts_search('also', highlight_start='[', highlight_end=']', snippet_size=3)}, {
'…will [also] help…'})
fts = cache.reindex_fts()
self.assertTrue(fts.pool.initialized)
self.wait_for_fts_to_finish(fts)
self.assertFalse(fts.all_currently_dirty())
self.ae({x['id'] for x in cache.fts_search('help')}, {1, 2})