diff --git a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp index 74c0775e164cf654f9679a7067b095685866b4d6..ba34ab86dbda73be17d4db94de783775f87de47e 100644 --- a/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp +++ b/frameworks/test/moduletest/ans_innerkits_module_publish_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -99,7 +99,9 @@ public: void OnCanceled(const std::shared_ptr &request, const std::shared_ptr &sortingMap, int deleteReason) override - {} + { + OnCanceledReceived = true; + } void OnConsumed(const std::shared_ptr &request) override {