From 0aa526d2569bf7680600cd0e8ae402a50b4baf29 Mon Sep 17 00:00:00 2001 From: Tomoko Uchida Date: Tue, 25 Jan 2022 22:05:27 +0900 Subject: [PATCH] LUCENE-10076: fix the assertion in luke module to only check if the optional has a value --- .../apache/lucene/luke/models/overview/TestOverviewImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java b/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java index 14810debc0a..04707358518 100644 --- a/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java +++ b/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java @@ -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