Remove Verify getProfileUser calls since it's making test flaky.

There is enough asserts in the test to verify SystemShortcut is not null.

Bug: 333909497
Test: Manual
Flag: NA
Change-Id: I287a910f0f101ce8bc2c1e8678dbff0ced30a1dc
This commit is contained in:
Anushree Ganjam
2024-05-02 15:17:46 -07:00
parent 8d6b9f5771
commit 8b770b7166
@@ -244,7 +244,6 @@ public class SystemShortcutTest {
SystemShortcut systemShortcut = SystemShortcut.PRIVATE_PROFILE_INSTALL
.getShortcut(mTestContext, mAppInfo, mView);
verify(mPrivateProfileManager, times(2)).getProfileUser();
assertNull(systemShortcut);
}
@@ -266,7 +265,6 @@ public class SystemShortcutTest {
SystemShortcut systemShortcut = SystemShortcut.PRIVATE_PROFILE_INSTALL
.getShortcut(mTestContext, mAppInfo, mView);
verify(mPrivateProfileManager, times(3)).getProfileUser();
verify(mPrivateProfileManager).isEnabled();
assertNotNull(systemShortcut);
}