mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
[TEST] fix another rounding issue
This commit is contained in:
parent
b0a377bae8
commit
9b5497f6ca
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user