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

Commit a3fcbf94 authored by tom hsu's avatar tom hsu
Browse files

Improve flaky test failed by using UI thread.

Flag: EXEMPT bug fix.
Fix: b/399342842
Test: atest pass
Change-Id: If9bc29f4ae4fae17692b4a6dab2d9d1cd982c339
parent dc71f9f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ import androidx.fragment.app.FragmentActivity;
import androidx.preference.PreferenceManager;
import androidx.preference.PreferenceScreen;
import androidx.recyclerview.widget.RecyclerView;
import androidx.test.annotation.UiThreadTest;

import com.android.settings.applications.AppInfoBase;
import com.android.settings.testutils.FakeFeatureFactory;
@@ -80,6 +81,7 @@ import org.robolectric.util.ReflectionHelpers;
import java.util.List;

@RunWith(RobolectricTestRunner.class)
@UiThreadTest
@Config(shadows = {ShadowRestrictedLockUtilsInternal.class})
public class AppDataUsageTest {