From 8b770b71669ed6bb6d63ba034367fe817c64308f Mon Sep 17 00:00:00 2001 From: Anushree Ganjam Date: Thu, 2 May 2024 15:17:46 -0700 Subject: [PATCH] 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 --- tests/src/com/android/launcher3/popup/SystemShortcutTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/src/com/android/launcher3/popup/SystemShortcutTest.java b/tests/src/com/android/launcher3/popup/SystemShortcutTest.java index e459956929..89a454467c 100644 --- a/tests/src/com/android/launcher3/popup/SystemShortcutTest.java +++ b/tests/src/com/android/launcher3/popup/SystemShortcutTest.java @@ -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); }