fixed test case, making timing reproducible

This commit is contained in:
Axel Uhl committed 2012-02-02 17:34:34 +01:00
1 parent 43c40bf8f3
commit 5c56aecd50
1 file changed
+1 -2
@@ -31,8 +31,7 @@ public class WindTest {
public void testAveragingWind() throws InterruptedException {
WindTrack track = new WindTrackImpl(AVERAGING_INTERVAL_MILLIS);
TimePoint t1 = MillisecondsTimePoint.now();
Thread.sleep(10);
TimePoint t2 = MillisecondsTimePoint.now();
TimePoint t2 = new MillisecondsTimePoint(t1.asMillis()+10);
TimePoint middle = new MillisecondsTimePoint((t1.asMillis()+t2.asMillis())/2);
DegreePosition pos = new DegreePosition(0, 0);
Wind wind1 = new WindImpl(pos, t1, new KnotSpeedWithBearingImpl(10, new DegreeBearingImpl(355)));