mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-28 00:16:46 +00:00
increased waiting interval to absolutely make sure we don't get two equal time stamps
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ public class TestStoringAndRetrievingWindTracksTest extends AbstractTracTracLive
|
||||
Position pos = new DegreePosition(54, 9);
|
||||
for (double bearingDeg = 123.4; bearingDeg<140; bearingDeg += 1.1) {
|
||||
windTrack.add(new WindImpl(pos, MillisecondsTimePoint.now(), new KnotSpeedWithBearingImpl(10., new DegreeBearingImpl(bearingDeg))));
|
||||
Thread.sleep(1); // ensure that the next now() call is distinguishably later
|
||||
Thread.sleep(10); // ensure that the next now() call is distinguishably later
|
||||
}
|
||||
Thread.sleep(2000); // give MongoDB some time to make written data available to other connections
|
||||
|
||||
|
||||
Reference in New Issue
Block a user