mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-27 04:00:43 +00:00
commit
fffe622dd7
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user