[JAVA-5097] Re-write AggregatesTest#testGeoNear to pass on all platforms Created: 02/Aug/23  Updated: 28/Oct/23  Resolved: 13/Sep/23

Status: Closed
Project: Java Driver
Component/s: Test Improvement
Affects Version/s: None
Fix Version/s: 4.11.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The com.mongodb.client.model.AggregatesTest#testGeoNear test fails on M1 chips due to SERVER-74983, which has been closed as Won't Fix after an exhaustive investigation into the root cause.

Given that, we should re-write the test so that it no longer fails when run on M1 chips, perhaps by using different coordinates.



 Comments   
Comment by Githook User [ 13/Sep/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Scale double values to 4 decimal digits in geoNear test (#1197)

This works around small variations in native math libraries used
by the server.

JAVA-5097
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/deed10ba3aadbf06973b044255f89e3ba15121f6

Generated at Thu Feb 08 09:03:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.