Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
xuqian 2024-11-16 15:19:41 +08:00
parent 32b243a63f
commit a38c9e2327
2 changed files with 14 additions and 2 deletions

View File

@ -982,7 +982,13 @@ HWTEST_F(OsAccountManagerServiceModuleTest, OsAccountManagerServiceModuleTest054
OsAccountInfo osAccountInfoTwo;
EXPECT_EQ(osAccountManagerService_->QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK);
EXPECT_EQ(isVerified, osAccountInfoTwo.GetIsVerified());
EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
ErrCode ret = osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId());
if (ret == ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_OPERATING_ERROR) {
sleep(1);
EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK);
} else {
EXPECT_EQ(ret, ERR_OK);
}
}
#endif // ENABLE_MULTIPLE_OS_ACCOUNTS

View File

@ -779,7 +779,13 @@ HWTEST_F(OsAccountInnerAccmgrMockTest, SetOsAccountIsVerified001, TestSize.Level
EXPECT_EQ(ERR_OK, innerMgrService_->GetOsAccountInfoById(id, accountInfoAfter));
EXPECT_TRUE(accountInfoAfter.GetIsVerified());
EXPECT_EQ(ERR_OK, innerMgrService_->RemoveOsAccount(createInfo.GetLocalId()));
ErrCode ret = innerMgrService_->RemoveOsAccount(createInfo.GetLocalId());
if (ret == ERR_OSACCOUNT_SERVICE_INNER_ACCOUNT_OPERATING_ERROR) {
sleep(1);
EXPECT_EQ(ERR_OK, innerMgrService_->RemoveOsAccount(createInfo.GetLocalId()));
} else {
EXPECT_EQ(ret, ERR_OK);
}
}
/*