mirror of https://github.com/apache/lucene.git
LUCENE-10076: fix the assertion in luke module to only check if the optional has a value
This commit is contained in:
parent
07fe46ff86
commit
0aa526d256
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue