Merge "Make switch user test measurements consistent with each other."

This commit is contained in:
Yasin Kilicdere
2022-08-23 19:38:52 +00:00
committed by Android (Google) Code Review

View File

@@ -273,9 +273,7 @@ public class UserLifecycleTests {
mRunner.resumeTiming();
Log.i(TAG, "Starting timer");
runThenWaitForBroadcasts(testUser, () -> {
mAm.switchUser(testUser);
}, Intent.ACTION_USER_UNLOCKED);
switchUser(testUser);
mRunner.pauseTiming();
Log.i(TAG, "Stopping timer");