diff --git a/services/ans/test/unittest/advanced_notification_service_test.cpp b/services/ans/test/unittest/advanced_notification_service_test.cpp index 44ce5921d13a08df55b9b9d209aa93ae57a3bf9c..d6d3a5c0545894754e331b8952814f86950cae48 100644 --- a/services/ans/test/unittest/advanced_notification_service_test.cpp +++ b/services/ans/test/unittest/advanced_notification_service_test.cpp @@ -2685,6 +2685,7 @@ HWTEST_F(AdvancedNotificationServiceTest, OnUserStopped_0100, Function | SmallTe MockIsSystemApp(true); advancedNotificationService_->OnUserStopped(userId); + SleepForFC(); ASSERT_EQ(advancedNotificationService_->notificationList_.size(), 0); GTEST_LOG_(INFO) << "OnResourceRemove_0100 test end";