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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user