[TEST] Set stop flag in the case of an exception

This commit is contained in:
Simon Willnauer 2018-04-24 17:55:53 +02:00
parent d32ce90924
commit ac027145fb
1 changed files with 2 additions and 1 deletions

View File

@ -582,12 +582,13 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
}
}
docs.close();
stop.set(true);
if (VERBOSE) {
System.out.println("TEST: index count=" + writerRef.get().maxDoc());
}
} catch (IOException ioe) {
throw new RuntimeException(ioe);
} finally {
stop.set(true);
}
}
};