From 51f080d00123002dee2f65eb1c2f0321aec7d810 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Fri, 6 Sep 2019 09:45:29 +0900 Subject: [PATCH] Remove race condition in test_create_readers --- tests/tantivy_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tantivy_test.py b/tests/tantivy_test.py index 870f172..202f9bd 100644 --- a/tests/tantivy_test.py +++ b/tests/tantivy_test.py @@ -120,6 +120,7 @@ class TestFromDiskClass(object): def test_create_readers(self): # not sure what is the point of this test. idx = Index(schema()) + idx.config_reader("Manual", 4) assert idx.searcher().num_docs == 0 # by default this is manual mode writer = idx.writer(30000000, 1)