NOBUG cleanup

This commit is contained in:
Paul Masurel
2017-02-27 09:52:28 +09:00
parent 15b60d72cc
commit ec5fb2eaa9
5 changed files with 39 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ fn test_indexing() {
for _ in 0..200 {
let random_val = universe.ind_sample(&mut rng);
if random_val == 0 {
index_writer.commit();
index_writer.commit().expect("Commit failed");
committed_docs.extend(&uncommitted_docs);
uncommitted_docs.clear();
index.load_searchers().unwrap();