SOLR-5920: fix CursorMarkTest.getRandomCollation() to call termAtt.fillBytesRef() and ts.end()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1582934 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2014-03-29 01:35:24 +00:00
parent a53c78d7ef
commit 145dcab3ca
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ public class CursorMarkTest extends SolrTestCaseJ4 {
val = termAtt.getBytesRef();
ts.reset();
assertTrue(ts.incrementToken());
termAtt.fillBytesRef();
assertFalse(ts.incrementToken());
ts.end();
}
return val;
}