Relax scores comparisons in TestBooleanRewrites.

This commit is contained in:
Adrien Grand 2016-10-21 09:12:28 +02:00
parent af88e7f54d
commit 36e997d45c
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ public class TestBooleanRewrites extends LuceneTestCase {
for (ScoreDoc scoreDoc : td2.scoreDocs) {
final float expectedScore = expectedScores.get(scoreDoc.doc);
final float actualScore = scoreDoc.score;
assertEquals(expectedScore, actualScore, 10e-5);
assertEquals(expectedScore, actualScore, expectedScore / 100); // error under 1%
}
}
}