Skip to content

Apache Lucene open-source search software

LUCENE-6271: remove hardcoded foo and use field parameter in this test

Robert Muirf99b6556e4d6
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java b/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
index e769b1e8228..6e4dd97e003 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestPostingsEnum.java
@@ -46,7 +46,7 @@ public class TestPostingsEnum extends LuceneTestCase {
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);
}
}