diff options
author | jovanak <jovanak@google.com> | 2018-06-20 14:15:39 -0700 |
---|---|---|
committer | jovanak <jovanak@google.com> | 2018-06-20 14:15:39 -0700 |
commit | d812d4c1ac4590e98d41c01fab14f654ea0b3657 (patch) | |
tree | 80e6620123475a304e4b1deb4150404e00b4ae07 | |
parent | 7603beb9f697eae2752a5e7020d02a0d802a2744 (diff) | |
download | Car-d812d4c1ac4590e98d41c01fab14f654ea0b3657.tar.gz |
Removes the test that fails when running it in user 0.
Cannot implement this test because of inability to mock current user, so
removing until robolectric tests are available.
Bug:110232368
Test: atest CarUserManagerHelperTest
Change-Id: I4be6615ab8c3c616606384495bc7006f2bbeb0f8
-rw-r--r-- | tests/carservice_unit_test/src/com/android/car/CarUserManagerHelperTest.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/carservice_unit_test/src/com/android/car/CarUserManagerHelperTest.java b/tests/carservice_unit_test/src/com/android/car/CarUserManagerHelperTest.java index a35814cd4f..3c97ca19cc 100644 --- a/tests/carservice_unit_test/src/com/android/car/CarUserManagerHelperTest.java +++ b/tests/carservice_unit_test/src/com/android/car/CarUserManagerHelperTest.java @@ -321,10 +321,6 @@ public class CarUserManagerHelperTest { // If Non-Admin is trying to remove someone other than themselves, they should fail. assertThat(mHelper.removeUser(otherUser, mGuestUserName)).isFalse(); verify(mUserManager, never()).removeUser(otherUser.id); - - // If Non-Admin is trying to remove themselves, that's ok. - assertThat(mHelper.removeUser(mCurrentProcessUser, mGuestUserName)).isTrue(); - verify(mUserManager).removeUser(mCurrentProcessUser.id); } @Test |