mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
TrackRecordingService: call stopSelf after triggering post-workout export.
Might fix #1080.
This commit is contained in:
+2
-2
@@ -132,7 +132,7 @@ public class TrackRecordingServiceTestStateMachine {
|
||||
assertEquals(GpsStatusValue.GPS_ENABLED, service.getGpsStatusObservable().getValue());
|
||||
|
||||
// when
|
||||
service.stopSensors(true);
|
||||
service.stopSensorsAndShutdown();
|
||||
Thread.sleep(1000);
|
||||
|
||||
// then
|
||||
@@ -252,7 +252,7 @@ public class TrackRecordingServiceTestStateMachine {
|
||||
assertEquals(GpsStatusValue.GPS_ENABLED, service.getGpsStatusObservable().getValue());
|
||||
|
||||
// when
|
||||
service.stopSensors(false); //TODO Should be ignored as service is recording
|
||||
service.stopSensors(); //TODO Should be ignored as service is recording
|
||||
Thread.sleep(1000);
|
||||
|
||||
// then
|
||||
|
||||
Reference in New Issue
Block a user