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
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 a35814c..3c97ca1 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 @@
// 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