[TEST] fix another rounding issue

This commit is contained in:
Britta Weber 2014-09-11 19:32:30 +02:00
parent b0a377bae8
commit 9b5497f6ca
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest {
}
for (int i = 0; i < weights.length; i++) {
float functionScore = weights[i] * scores[i];
double functionScore = (double) weights[i] * scores[i];
if ("avg".equals(scoreMode)) {
expectedScore += functionScore;