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

Commit 2c722719 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Removing users synchronously

Bug: 302400996
Test: presubmit
Flag: N/A
Change-Id: Iac1863039cbb9d612abe416b7aee135eec25f223
parent be2a18d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -300,7 +300,8 @@ public abstract class AbstractLauncherUiTest {
        if (userManager != null) {
            for (UserHandle userHandle : userManager.getUserProfiles()) {
                if (!userHandle.isSystem()) {
                    mDevice.executeShellCommand("pm remove-user " + userHandle.getIdentifier());
                    mDevice.executeShellCommand(
                            "pm remove-user --wait " + userHandle.getIdentifier());
                }
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ public class TaplWorkProfileTest extends AbstractLauncherUiTest {
        mLauncher.runToState(
                () -> {
                    try {
                        mDevice.executeShellCommand("pm remove-user " + mProfileUserId);
                        mDevice.executeShellCommand("pm remove-user --wait " + mProfileUserId);
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }