We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db7f782 commit 4055365Copy full SHA for 4055365
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/aggregation/AggregationTests.java
@@ -1043,7 +1043,7 @@ public void shouldSupportGeoNearQueriesForAggregationWithDistanceField() {
1043
1044
DBObject firstResult = result.getMappedResults().get(0);
1045
assertThat(firstResult.containsField("distance"), is(true));
1046
- assertThat(firstResult.get("distance"), is((Object) 117.620092203928));
+ assertThat((Double) firstResult.get("distance"), closeTo(117.620092203928, 0.00001));
1047
}
1048
1049
private void assertLikeStats(LikeStats like, String id, long count) {
0 commit comments