Increase the broadcast timeout duration in the tests.

In the legacy queue, it is posssible that the broadcast
timeout is elapsed before the onApplicationAttachedLocked()
callback is received, which will result in the broadcast
receiver getting discarded.

Bug: 289108400
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueTest.java
Change-Id: Ic3456f0711d09a5d1e5549a326ad056bde939546
This commit is contained in:
Sudheer Shanka
2023-07-17 19:16:55 -07:00
parent ac443c4474
commit dcd5c460ab

View File

@@ -328,7 +328,7 @@ public class BroadcastQueueTest {
eq(ActivityManager.PROCESS_STATE_LAST_ACTIVITY), any());
mConstants = new BroadcastConstants(Settings.Global.BROADCAST_FG_CONSTANTS);
mConstants.TIMEOUT = 100;
mConstants.TIMEOUT = 200;
mConstants.ALLOW_BG_ACTIVITY_START_TIMEOUT = 0;
mConstants.PENDING_COLD_START_CHECK_INTERVAL_MILLIS = 500;