Fix fast location cadence ref:

This commit is contained in:
Janez T
2026-04-07 10:35:31 +02:00
parent d92e52c5c2
commit e5514b4ef9
3 changed files with 46 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ void main() {
);
service.fastLocationUpdatesEnabled = false;
service.fastLocationMovementThresholdMeters = 10.0;
service.fastLocationActiveCadenceSeconds = 10;
service.fastLocationActiveCadenceSeconds = 60;
service.fastLocationChannelIdx = null;
});
@@ -23,7 +23,7 @@ void main() {
await service.loadSettings();
expect(service.fastLocationMovementThresholdMeters, 10.0);
expect(service.fastLocationActiveCadenceSeconds, 10);
expect(service.fastLocationActiveCadenceSeconds, 60);
});
test('persists and restores fast location channel idx', () async {
@@ -50,6 +50,6 @@ void main() {
await service.updateFastLocationActiveCadenceSeconds(45);
expect(service.fastLocationMovementThresholdMeters, 10.0);
expect(service.fastLocationActiveCadenceSeconds, 31);
expect(service.fastLocationActiveCadenceSeconds, 60);
});
}