Merge "Fix test flakiness"

This commit is contained in:
Neil Fuller
2021-11-24 16:04:27 +00:00
committed by Android (Google) Code Review

View File

@@ -190,6 +190,9 @@ public class TimeZoneDetectorServiceTest {
createTimeZoneConfiguration(true /* autoDetectionEnabled */);
mTimeZoneDetectorService.updateConfiguration(autoDetectEnabledConfiguration);
// The configuration update notification is asynchronous.
mTestHandler.waitForMessagesToBeProcessed();
verify(mMockContext).enforceCallingPermission(
eq(android.Manifest.permission.MANAGE_TIME_AND_ZONE_DETECTION),
anyString());