diff --git a/services/tests/wmtests/src/com/android/server/wm/AppWindowTokenTests.java b/services/tests/wmtests/src/com/android/server/wm/AppWindowTokenTests.java index 5c21853b1f598..9263d8a2f9e3f 100644 --- a/services/tests/wmtests/src/com/android/server/wm/AppWindowTokenTests.java +++ b/services/tests/wmtests/src/com/android/server/wm/AppWindowTokenTests.java @@ -316,20 +316,16 @@ public class AppWindowTokenTests extends WindowTestsBase { } @Test - @FlakyTest(bugId = 130392471) public void testAddRemoveRace() { // There was once a race condition between adding and removing starting windows + final ActivityRecord appToken = mAppWindow.mActivityRecord; for (int i = 0; i < 1000; i++) { - final ActivityRecord appToken = createIsolatedTestActivityRecord(); - appToken.addStartingWindow(mPackageName, android.R.style.Theme, null, "Test", 0, 0, 0, 0, null, true, true, false, true, false, false); appToken.removeStartingWindow(); waitUntilHandlersIdle(); assertNoStartingWindow(appToken); - - appToken.getParent().getParent().removeImmediately(); } }