Fix query U0 active status issue

Signed-off-by: zhangalong <zhangalong@huawei.com>
This commit is contained in:
zhangalong 2022-02-23 19:19:35 +08:00
parent e64cc57e58
commit d4f2de821b
2 changed files with 3 additions and 3 deletions

View File

@ -342,7 +342,7 @@ HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest011, TestSize.Lev
HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest012, TestSize.Level0)
{
bool isOsAccountActived = false;
EXPECT_EQ(OsAccountManager::IsOsAccountActived(Constants::START_USER_ID, isOsAccountActived), ERR_OK);
EXPECT_EQ(OsAccountManager::IsOsAccountActived(Constants::ADMIN_LOCAL_ID, isOsAccountActived), ERR_OK);
EXPECT_EQ(isOsAccountActived, true);
}
@ -358,7 +358,7 @@ HWTEST_F(OsAccountManagerModuleTest, OsAccountManagerModuleTest013, TestSize.Lev
OsAccountManager::CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne);
bool isOsAccountActived = false;
EXPECT_EQ(OsAccountManager::IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), ERR_OK);
EXPECT_EQ(isOsAccountActived, true);
EXPECT_EQ(isOsAccountActived, false);
osAccountControlFileManager_->DelOsAccount(osAccountInfoOne.GetLocalId());
}

View File

@ -370,7 +370,7 @@ HWTEST_F(OsAccountManagerServiceModuleTest, OsAccountManagerServiceModuleTest014
g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne);
bool isOsAccountActived = false;
EXPECT_EQ(g_osAccountManagerService->IsOsAccountActived(osAccountInfoOne.GetLocalId(), isOsAccountActived), ERR_OK);
EXPECT_EQ(isOsAccountActived, true);
EXPECT_EQ(isOsAccountActived, false);
osAccountControlFileManager_->DelOsAccount(osAccountInfoOne.GetLocalId());
}