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

Commit d02d0777 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix flaky tests in PeopleSpaceWidgetManager" into sc-dev am: 17d75156

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14487422

Change-Id: I345bccd6f4c670dc3c7c5fac1e2288e267ca6bc5
parents 9d7ac67e 17d75156
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,