LUCENE-8756: fix precommit failure

This commit is contained in:
Mike McCandless 2019-05-02 19:33:03 -04:00
parent 1b15f6e037
commit c05501e5b2
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import org.apache.lucene.analysis.Analyzer;
@ -494,7 +495,7 @@ public class TestMoreLikeThis extends LuceneTestCase {
.sum();
// mlt should use the custom frequencies provided by the analyzer so "lucene|10" should be boosted more than "lucene|1"
assertTrue(String.format("%s should be grater than %s", boost10, boost1), boost10 > boost1);
assertTrue(String.format(Locale.ROOT, "%s should be grater than %s", boost10, boost1), boost10 > boost1);
}
// TODO: add tests for the MoreLikeThisQuery