From cd982ade99ce2db939b7ed9278ba199010641131 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 19 Apr 2016 15:44:45 -0400 Subject: [PATCH] [test] Fix random bounds 0 is invalid so we don't generate it any more. --- .../functionscore/FunctionScoreQueryBuilderTests.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilderTests.java b/core/src/test/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilderTests.java index 31b1b4ecd11..540066ba58b 100644 --- a/core/src/test/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilderTests.java +++ b/core/src/test/java/org/elasticsearch/index/query/functionscore/FunctionScoreQueryBuilderTests.java @@ -59,7 +59,6 @@ import java.io.IOException; import java.util.Collections; import java.util.Map; -import static java.lang.Math.abs; import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; import static org.elasticsearch.index.query.QueryBuilders.functionScoreQuery; import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery; @@ -201,13 +200,13 @@ public class FunctionScoreQueryBuilderTests extends AbstractQueryTestCase