diff --git a/server/src/test/java/org/opensearch/index/mapper/KeywordFieldTypeTests.java b/server/src/test/java/org/opensearch/index/mapper/KeywordFieldTypeTests.java index c2c9b3942c163..c3a1e7bbda64f 100644 --- a/server/src/test/java/org/opensearch/index/mapper/KeywordFieldTypeTests.java +++ b/server/src/test/java/org/opensearch/index/mapper/KeywordFieldTypeTests.java @@ -149,7 +149,7 @@ public void testTermsQuery() { MappedFieldType unsearchable = new KeywordFieldType("field", false, false, Collections.emptyMap()); IllegalArgumentException e = expectThrows( IllegalArgumentException.class, - () -> unsearchable.termsQuery(Arrays.asList("foo", "bar"),RewriteOverride.DEFAULT,null) + () -> unsearchable.termsQuery(Arrays.asList("foo", "bar"), RewriteOverride.DEFAULT, null) ); assertEquals( "Cannot search on field [field] since it is both not indexed, and does not have doc_values " + "enabled.",