From 4affe33430b20523a6e413908e5f8819079bbd47 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 17 May 2014 12:36:21 +0000 Subject: [PATCH] fix test bug: we have to check the actual DVF (the codec could be a frankenstein) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1595456 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/uninverting/TestFieldCacheVsDocValues.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCacheVsDocValues.java b/lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCacheVsDocValues.java index 12844704b37..dc196c4e971 100644 --- a/lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCacheVsDocValues.java +++ b/lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCacheVsDocValues.java @@ -589,7 +589,7 @@ public class TestFieldCacheVsDocValues extends LuceneTestCase { } protected boolean codecAcceptsHugeBinaryValues(String field) { - String name = Codec.getDefault().getName(); + String name = TestUtil.getDocValuesFormat(field); return !(name.equals("Lucene40") || name.equals("Lucene41") || name.equals("Lucene42") || name.equals("Memory") || name.equals("Direct")); } }