diff --git a/services/ans/test/unittest/advanced_notification_service_test.cpp b/services/ans/test/unittest/advanced_notification_service_test.cpp index 5c973860715ebba9b0e6da6eadc3763c7c495a38..e0aba8c89a6574cde5641594dbc436571b42198a 100644 --- a/services/ans/test/unittest/advanced_notification_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_service_test.cpp @@ -2002,6 +2002,7 @@ HWTEST_F(AdvancedNotificationServiceTest, AdvancedNotificationServiceTest_15300, int32_t userId = 4; std::vector dumpInfo; EXPECT_EQ(advancedNotificationService_->ShellDump(cmd, bundle, userId, dumpInfo), (int)ERR_ANS_INVALID_PARAM); + IPCSkeleton::SetCallingTokenID(NON_NATIVE_TOKEN); } /**