Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51e34510 authored by Mateusz Cicheński's avatar Mateusz Cicheński
Browse files

Postpone location mocking to reduce instrumentation failures

There is a race condition of setting the test provider and issuing
the first update, so postpone the first update to avoid it.

Bug: 315238413
Change-Id: If4d69a708a4bdb0c5c79c161a19c19c260471e27
Test: atest MapsEnterPipTest
Flag: none
parent 164dc5b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ open class MapsEnterPipTest(flicker: LegacyFlickerTest) : AppsEnterPipTransition
            )
            locationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER, true)
            mockLocationEnabled = true
            mainHandler.post(updateLocation)
            // postpone first location update to make sure GPS is set as test provider
            mainHandler.postDelayed(updateLocation, 200)

            // normal app open through the Launcher All Apps
            // var mapsAddressOption = "Golden Gate Bridge"