Skip to content

Commit 3178b84

Browse files
committed
for some reason the test only runs with @test on the main class...
1 parent d8063ac commit 3178b84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/elasticsearch/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@
2727
/**
2828
* @author kimchy (shay.banon)
2929
*/
30+
@Test
3031
public class DistanceUnitTests {
3132

3233
@Test void testSimpleDistanceUnit() {
3334
assertThat(DistanceUnit.MILES.toKilometers(10), closeTo(16.09344, 0.001));
3435
assertThat(DistanceUnit.MILES.toMiles(10), closeTo(10, 0.001));
35-
assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.000));
36-
assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.000));
36+
assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.001));
37+
assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.001));
3738
}
3839
}

0 commit comments

Comments
 (0)