commit | 4ada2d2cde905846106467055938035551de8ecc | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Fri Oct 05 11:35:24 2018 -0700 |
committer | Vadim Tryshev <vadimt@google.com> | Fri Oct 05 12:03:17 2018 -0700 |
tree | b0806bda9e0761f6af22b4de683c649d03b7ec67 | |
parent | 88c289eae3912e087562fbb91a98f41d8142f71f [diff] |
Resetting loader state after each UI test run This is to prevent tests from affecting tests running after them. Bug: 117332845 Test: Ran all tests; will see on TAP Change-Id: Ie93ef30477eb069c6b4df48c6fceaceb968edaf4
diff --git a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java index 6c44d81..f820ff9 100644 --- a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +++ b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java
@@ -162,6 +162,8 @@ @After public void tearDown() throws Exception { mDevice.executeShellCommand("settings put global heads_up_notifications_enabled 1"); + // Limits UI tests affecting tests running after them. + resetLoaderState(); } protected void lockRotation(boolean naturalOrientation) throws RemoteException {