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

Commit dd2e7f44 authored by Yasin Kilicdere's avatar Yasin Kilicdere Committed by Android (Google) Code Review
Browse files

Merge "Make the timeout for user removal 40 seconds in UserManagerTest."

parents 99ba3615 c3cb82a5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ public final class UserManagerTest {
    private static final long EPOCH_PLUS_30_YEARS = 30L * 365 * 24 * 60 * 60 * 1000L; // 30 years

    private static final int SWITCH_USER_TIMEOUT_SECONDS = 40; // 40 seconds
    private static final int REMOVE_USER_TIMEOUT_SECONDS = 40; // 40 seconds

    // Packages which are used during tests.
    private static final String[] PACKAGES = new String[] {
@@ -1472,6 +1473,7 @@ public final class UserManagerTest {
        BlockingBroadcastReceiver blockingBroadcastReceiver = BlockingBroadcastReceiver.create(
                mContext, Intent.ACTION_USER_REMOVED, checker);

        blockingBroadcastReceiver.setTimeout(REMOVE_USER_TIMEOUT_SECONDS);
        blockingBroadcastReceiver.register();

        try (blockingBroadcastReceiver) {