Fixed race condition in unit test

This commit is contained in:
Steffen Schaefer committed 2017-05-30 09:32:16 +02:00
1 parent 379122b363
commit 4108c2ec8d
1 file changed
+2
@@ -756,6 +756,8 @@ public class SensorFixStoreAndLoadTest {
device, new MillisecondsTimePoint(START_OF_TRACKING), new MillisecondsTimePoint(END_OF_TRACKING)));
addBravoFixes();
FixLoaderAndTracker fixLoaderAndTracker = createFixLoaderAndTracker();
// creating a new RaceLog instance to ensure that startOfTracking insn't set initially
raceLog = new RaceLogImpl("racelog");
trackedRace.attachRaceLog(raceLog);
trackedRace.attachRegattaLog(regattaLog);
testNumberOfRawFixes(trackedRace.getSensorTrack(comp, BravoFixTrack.TRACK_NAME), 0);