mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-11 13:33:07 +02:00
Fix an error of TripStatisticsUpdaterTest.
This commit is contained in:
+3
-2
@@ -309,8 +309,9 @@ public class TripStatisticsUpdaterTest extends TestCase {
|
|||||||
private void addLocations(int points, long startTime, TripStatistics tripStatistics,
|
private void addLocations(int points, long startTime, TripStatistics tripStatistics,
|
||||||
int timeOffset, int locationOffset) {
|
int timeOffset, int locationOffset) {
|
||||||
for (int i = 0; i < points; i++) {
|
for (int i = 0; i < points; i++) {
|
||||||
Location location = getLocation(i + locationOffset, (i + locationOffset) * .001,
|
// 99999 means a speed should bigger than given speed.
|
||||||
MOVING_SPEED, startTime + (timeOffset + i) * TEN_SECONDS);
|
Location location = getLocation(i + locationOffset, (i + locationOffset) * .001, 99999,
|
||||||
|
startTime + (timeOffset + i) * TEN_SECONDS);
|
||||||
tripStatisticsUpdater.addLocation(location, PreferencesUtils.MIN_RECORDING_DISTANCE_DEFAULT);
|
tripStatisticsUpdater.addLocation(location, PreferencesUtils.MIN_RECORDING_DISTANCE_DEFAULT);
|
||||||
tripStatistics = tripStatisticsUpdater.getTripStatistics();
|
tripStatistics = tripStatisticsUpdater.getTripStatistics();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user