From 913b168255d5b0e9fc68cd1d467a530b9fb63be6 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 30 Jan 2013 09:14:08 +0000 Subject: [PATCH] Fix test bug. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1440311 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestPayloadsOnVectors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestPayloadsOnVectors.java b/lucene/core/src/test/org/apache/lucene/index/TestPayloadsOnVectors.java index 7f9832fd43c..d497c117814 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestPayloadsOnVectors.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestPayloadsOnVectors.java @@ -251,7 +251,7 @@ public class TestPayloadsOnVectors extends LuceneTestCase { for (int i = 0; i < len; ++i) { terms[i] = RandomPicks.randomFrom(random(), sampleTerms); if (weird) { - positionsIncrements[i] = random().nextInt(1 << 18); + positionsIncrements[i] = _TestUtil.nextInt(random(), 1, 1 << 18); startOffsets[i] = random().nextInt(); endOffsets[i] = random().nextInt(); } else if (i == 0) {