修改DT用例问题

Signed-off-by: rsin <renxin20@h-partners.com>
This commit is contained in:
rsin 2024-09-10 14:42:30 +00:00 committed by Gitee
parent 8152b305b8
commit 9922aa7844
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -247,7 +247,6 @@ HWTEST_F(SimTest, SavePrimarySlotId_0301, Function | MediumTest | Level1)
std::shared_ptr<AppExecFwk::EventHandler> handler = std::make_shared<EventHandler>();
int32_t status = CoreManagerInner::GetInstance().DelSimMessage(0, 0, 0, handler);
bool isSupported = true;
EXPECT_EQ(status, TELEPHONY_ERR_LOCAL_PTR_NULL);
}
@ -552,10 +551,12 @@ HWTEST_F(SimTest, SavePrimarySlotId_0330, Function | MediumTest | Level1)
*/
HWTEST_F(SimTest, Telephony_Sim_MockTest_0100, Function | MediumTest | Level3)
{
bool isSupported = true;
if (!(SimTest::HasSimCard(SimTest::slotId_))) {
isSupported = fasle;
TELEPHONY_LOGI("TelephonyTestService has no sim card");
}
EXPECT_TRUE(true);
EXPECT_TRUE(isSupported);
}
#endif // TEL_TEST_UNSUPPORT
} // namespace Telephony