Remove race condition in test_create_readers

master
Paul Masurel 2019-09-06 09:45:29 +09:00
parent f57c4669c8
commit 51f080d001
1 changed files with 1 additions and 0 deletions

View File

@ -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)