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
|
@Test
|
||||||
public void testIsOptimized() {
|
public void testIsOptimized() {
|
||||||
OverviewImpl overview = new OverviewImpl(reader, indexDir.toString());
|
OverviewImpl overview = new OverviewImpl(reader, indexDir.toString());
|
||||||
assertTrue(overview.isOptimized().orElse(false));
|
assertTrue(overview.isOptimized().isPresent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue