DATAMONGO-1127 - Add support for geoNear queries with distance information.
Made unit tests more robust to small differences in distance calculations between MongoDB versions.
This commit is contained in:
@@ -1043,7 +1043,7 @@ public class AggregationTests {
|
||||
|
||||
DBObject firstResult = result.getMappedResults().get(0);
|
||||
assertThat(firstResult.containsField("distance"), is(true));
|
||||
assertThat(firstResult.get("distance"), is((Object) 117.620092203928));
|
||||
assertThat((Double) firstResult.get("distance"), closeTo(117.620092203928, 0.00001));
|
||||
}
|
||||
|
||||
private void assertLikeStats(LikeStats like, String id, long count) {
|
||||
|
||||
Reference in New Issue
Block a user