Skip to content

Commit 1483c0a

Browse files
Louis ChangGerrit Code Review
authored andcommitted
Merge "Wait before asserts activity's removal" into android13-tests-dev
2 parents bbec50d + 5c0bdbe commit 1483c0a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ActivityStarterTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,8 @@ public void testActivityWithFinishOnTaskLaunch() {
684684
.execute();
685685
mWmState.waitForActivityState(STANDARD_ACTIVITY, STATE_RESUMED);
686686

687-
// Make sure the activity is finished.
688-
assertEquals("Instance of the activity in its task must be cleared", 0,
689-
mWmState.getActivityCountInTask(taskId, FINISH_ON_TASK_LAUNCH_ACTIVITY));
687+
// Make sure the activity is removed.
688+
mWmState.waitAndAssertActivityRemoved(FINISH_ON_TASK_LAUNCH_ACTIVITY);
690689
}
691690

692691
@Test

0 commit comments

Comments
 (0)