fix: stop orphaned GPS synchronization
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package pl.firmatpp.kierowca.data.upload
|
||||
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class RoutePointWorkerRulesTest {
|
||||
@Test
|
||||
fun inactiveRouteConflictDiscardsObsoleteGpsPoints() {
|
||||
assertTrue(isInactiveRoutePointError("ROUTE_POINTS_INVALID_STATUS"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun temporaryServerFailureDoesNotDiscardGpsPoints() {
|
||||
assertFalse(isInactiveRoutePointError("SERVER_UNAVAILABLE"))
|
||||
assertFalse(isInactiveRoutePointError(null))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user