Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46e414c4 authored by Anna Zappone's avatar Anna Zappone
Browse files

Fix flaky tests in PeopleSpaceWidgetManager

Test: PeopleSpaceWidgetManagerTest
Bug: 187469743
Change-Id: Id40811a0adbf51b9d1a3e0cccd34acbdac99f425
parent 48eb116d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1041,7 +1041,6 @@ public class PeopleSpaceWidgetManagerTest extends SysuiTestCase {
        Bundle newOptions = new Bundle();
        mManager.onAppWidgetOptionsChanged(SECOND_WIDGET_ID_WITH_SHORTCUT, newOptions);


        // Check that options is not modified
        verify(mAppWidgetManager, never()).updateAppWidgetOptions(
                eq(SECOND_WIDGET_ID_WITH_SHORTCUT), any());
@@ -1478,6 +1477,8 @@ public class PeopleSpaceWidgetManagerTest extends SysuiTestCase {
        widgetSp5.edit().clear().commit();
        SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);
        sp.edit().clear().commit();
        mManager.mListeners.clear();
        mManager.mTiles.clear();
    }

    private void setStorageForTile(String shortcutId, String packageName, int widgetId,