Browse Source

Fix expectations of GeoPointFieldMapperTests.

Closes #19895
Adrien Grand 9 years ago
parent
commit
42725e9339

+ 1 - 2
core/src/test/java/org/elasticsearch/index/mapper/geo/GeoPointFieldMapperTests.java

@@ -862,8 +862,7 @@ public class GeoPointFieldMapperTests extends ESSingleNodeTestCase {
         final int numHashes = hashes.size();
         for(int i=0; i<numHashes; ++i) {
             String hash = "dr5regy6rc6y".substring(0, numHashes-i);
-            Object expected = version.before(Version.V_5_0_0_alpha1) ? hash : new BytesRef(hash);
-            assertEquals(expected, hashes.get(i));
+            assertEquals(hash, hashes.get(i));
         }
     }