!1165 整改TDD用例

Merge pull request !1165 from dingxiaochen/master
This commit is contained in:
openharmony_ci 2023-03-29 10:00:31 +00:00 committed by Gitee
commit 94c70cf415
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4336,7 +4336,8 @@ HWTEST_F(SimTest, Telephony_Sim_TestDump_0100, Function | MediumTest | Level3)
HWTEST_F(SimTest, Telephony_Sim_SetPrimarySlotId_0100, Function | MediumTest | Level3)
{
AccessToken token;
if (!SimTest::HasSimCard(slotId_) || CoreServiceClient::GetInstance().GetMaxSimCount() == 1) {
if (CoreServiceClient::GetInstance().GetMaxSimCount() == 1 ||
!(SimTest::HasSimCard(slotId_) && SimTest::HasSimCard(slotId1_))) {
TELEPHONY_LOGI("TelephonyTestService has no sim card or one card version");
} else {
int32_t result = CoreServiceClient::GetInstance().SetPrimarySlotId(SimTest::slotId_);
@ -4353,7 +4354,8 @@ HWTEST_F(SimTest, Telephony_Sim_SetPrimarySlotId_0100, Function | MediumTest | L
HWTEST_F(SimTest, Telephony_Sim_SetPrimarySlotId_0200, Function | MediumTest | Level3)
{
AccessToken token;
if (!SimTest::HasSimCard(slotId1_)) {
if (CoreServiceClient::GetInstance().GetMaxSimCount() == 1 ||
!(SimTest::HasSimCard(slotId_) && SimTest::HasSimCard(slotId1_))) {
TELEPHONY_LOGI("TelephonyTestService has no sim card");
} else {
int32_t result = CoreServiceClient::GetInstance().SetPrimarySlotId(SimTest::slotId1_);