mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-23 02:00:01 +00:00
fix tdd
Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
parent
32b243a63f
commit
a38c9e2327
@ -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