Fixed UserManagerServiceShellCommandTest.

Test: atest UserManagerServiceShellCommandTest
Fixes: 275599043
Bug: 271295369

Change-Id: I5d0f68cb7cb3d841793a3e5caee6326f11678c69
This commit is contained in:
Felipe Leme
2023-03-28 17:14:16 -07:00
parent 4e97becaa4
commit 12c92c3b89

View File

@@ -107,7 +107,7 @@ public class UserManagerServiceShellCommandTest {
new String[]{"get-main-user"}, mShellCallback, mResultReceiver));
mWriter.flush();
assertEquals("Main user id: 12", mOutStream.toString().trim());
assertEquals("12", mOutStream.toString().trim());
}
@Test
@@ -118,7 +118,7 @@ public class UserManagerServiceShellCommandTest {
assertEquals(1, mCommand.exec(mBinder, in, out, err,
new String[]{"get-main-user"}, mShellCallback, mResultReceiver));
mWriter.flush();
assertEquals("Couldn't get main user.", mOutStream.toString().trim());
assertEquals("None", mOutStream.toString().trim());
}
@Test