diff --git a/modules/elasticsearch/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java b/modules/elasticsearch/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java index 806a85417c9..689d6a327cc 100644 --- a/modules/elasticsearch/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java +++ b/modules/elasticsearch/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java @@ -27,12 +27,13 @@ import static org.hamcrest.Matchers.*; /** * @author kimchy (shay.banon) */ +@Test public class DistanceUnitTests { @Test void testSimpleDistanceUnit() { assertThat(DistanceUnit.MILES.toKilometers(10), closeTo(16.09344, 0.001)); assertThat(DistanceUnit.MILES.toMiles(10), closeTo(10, 0.001)); - assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.000)); - assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.000)); + assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.001)); + assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.001)); } }