summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2018-01-02 10:21:07 +0100
committerluccioman <luccioman@users.noreply.github.com>2018-01-02 10:21:07 +0100
commit36e9b1c5b3846d6e8a188fab39667b38150132a4 (patch)
tree5b1cbb3f1a24f01c9fbe58c2a63c898aa2f1e263 /test
parent8a4ea1c11ec8cb1b49ea5ec55195c5ad2d9f9d47 (diff)
Fixed SegmentTest test case time dependant occasional failures
As highlighted by latest automated Travis builds.
Diffstat (limited to 'test')
-rw-r--r--test/java/net/yacy/search/index/SegmentTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/java/net/yacy/search/index/SegmentTest.java b/test/java/net/yacy/search/index/SegmentTest.java
index c75a54e14..c767b9d8d 100644
--- a/test/java/net/yacy/search/index/SegmentTest.java
+++ b/test/java/net/yacy/search/index/SegmentTest.java
@@ -48,9 +48,13 @@ public class SegmentTest {
new File("test/DATA/INDEX/webportal/SEGMENTS"),
new File("test/DATA/INDEX/webportal/ARCHIVE"),
null, null);
+
+ /* Warning : ensure the size is larger than the maximum number of test terms added to the index, otherwise
+ * query tests might randomly fail depending on when the index dump job (IndexCell.FlushThread) is run */
+ final int entityCacheMaxSize = 20;
// connect RWI index
- index.connectRWI(10, 1024);
+ index.connectRWI(entityCacheMaxSize, 1024);
}
@After