TrackRecordingService: call stopSelf after triggering post-workout export.

Might fix #1080.
This commit is contained in:
Dennis Guse
2022-01-28 21:06:20 +01:00
parent cc93384d1f
commit a7fd6b8dfa
2 changed files with 29 additions and 31 deletions
@@ -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