diff --git a/frameworks/ans/test/unittest/notification_bundle_option_test.cpp b/frameworks/ans/test/unittest/notification_bundle_option_test.cpp index 2d1a0577b06e1386efcfdd1afe05d5d1d0e544cb..83089557f5247f4159f0fdfa4b4d5607bdd5a7a5 100644 --- a/frameworks/ans/test/unittest/notification_bundle_option_test.cpp +++ b/frameworks/ans/test/unittest/notification_bundle_option_test.cpp @@ -75,7 +75,7 @@ HWTEST_F(NotificationBundleOptionTest, Dump_00001, Function | SmallTest | Level1 std::string bundleName = "BundleName"; int32_t uid = 10; auto rrc = std::make_shared(bundleName, uid); - std::string ret = "NotificationBundleOption{ bundleName = BundleName, uid = 10, instanceKey = 0 }"; + std::string ret = "NotificationBundleOption{ bundleName = BundleName, uid = 10, instanceKey = 0, appIndex = -1 }"; EXPECT_EQ(rrc->Dump(), ret); } diff --git a/services/ans/test/unittest/notification_preferences_test.cpp b/services/ans/test/unittest/notification_preferences_test.cpp index 9d3a053cff90540c89f47eeac6d1bf84b739a764..3588a96c0ccebc58e9c02add2ba85c7dbff762e9 100644 --- a/services/ans/test/unittest/notification_preferences_test.cpp +++ b/services/ans/test/unittest/notification_preferences_test.cpp @@ -1501,7 +1501,7 @@ HWTEST_F(NotificationPreferencesTest, GetDoNotDisturbProfile_0200, TestSize.Leve int32_t userId = 1; sptr profile; auto res = NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(profileId, userId, profile); - ASSERT_EQ(res, ERR_ANS_INVALID_PARAM); + ASSERT_EQ(res, ERR_ANS_NO_PROFILE_TEMPLATE); } /**