mirror of https://github.com/apache/lucene.git
LUCENE-8920: Fix flapping TestFstDirectAddressing.testDeDupTails (#1012)
This commit is contained in:
parent
3a7ea9756c
commit
5a4600e6d3
|
@ -63,8 +63,8 @@ public class TestFstDirectAddressing extends LuceneTestCase {
|
||||||
long size = buildFST(entries).ramBytesUsed();
|
long size = buildFST(entries).ramBytesUsed();
|
||||||
// Size is 1648 when we use only list-encoding. We were previously failing to ever de-dup
|
// Size is 1648 when we use only list-encoding. We were previously failing to ever de-dup
|
||||||
// direct addressing, which led this case to blow up.
|
// direct addressing, which led this case to blow up.
|
||||||
assertTrue(size <= 1080);
|
// This test will fail if there is more than 1% size increase with direct addressing.
|
||||||
//printf("fst size = %d bytes", size);
|
assertTrue("FST size = " + size + " B", size <= 1648 * 1.01d);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testWorstCaseForDirectAddressing() throws Exception {
|
public void testWorstCaseForDirectAddressing() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue