LUCENE-10076: fix the assertion in luke module to only check if the optional has a value

This commit is contained in:
Tomoko Uchida 2022-01-25 22:05:27 +09:00
parent 07fe46ff86
commit 0aa526d256
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class TestOverviewImpl extends OverviewTestBase {
@Test
public void testIsOptimized() {
OverviewImpl overview = new OverviewImpl(reader, indexDir.toString());
assertTrue(overview.isOptimized().orElse(false));
assertTrue(overview.isOptimized().isPresent());
}
@Test