Merge "Make the timeout for user removal 40 seconds in UserManagerTest."
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd2e7f446a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user