You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2015/04/01 20:12:02 UTC
svn commit: r1670748 -
/lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
Author: rmuir
Date: Wed Apr 1 18:12:01 2015
New Revision: 1670748
URL: http://svn.apache.org/r1670748
Log:
LUCENE-6271: remove hardcoded foo and use field parameter in this test
Modified:
lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
Modified: lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java?rev=1670748&r1=1670747&r2=1670748&view=diff
==============================================================================
--- lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java (original)
+++ lucene/dev/branches/lucene6271/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java Wed Apr 1 18:12:01 2015
@@ -46,7 +46,7 @@ public class TestPostingsEnum extends Lu
private static void assertReused(String field, PostingsEnum p1, PostingsEnum p2) {
// if its not DirectPF, we should always reuse. This one has trouble.
- if (!"Direct".equals(TestUtil.getPostingsFormat("foo"))) {
+ if (!"Direct".equals(TestUtil.getPostingsFormat(field))) {
assertSame(p1, p2);
}
}