From 7098909d421c240722bee9bf63096b35fe96cf81 Mon Sep 17 00:00:00 2001 From: anchi119 Date: Wed, 27 Aug 2025 10:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: anchi119 --- services/test/src/work_scheduler_connection_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/test/src/work_scheduler_connection_test.cpp b/services/test/src/work_scheduler_connection_test.cpp index 0d87878..6b006ae 100644 --- a/services/test/src/work_scheduler_connection_test.cpp +++ b/services/test/src/work_scheduler_connection_test.cpp @@ -27,7 +27,9 @@ using namespace std; namespace OHOS { namespace WorkScheduler { - +namespace { +const int32_t WORK_ID = 123; +} class WorkSchedulerConnectionTest : public testing::Test { public: static void SetUpTestCase(); @@ -42,7 +44,7 @@ std::shared_ptr WorkSchedulerConnectionTest::workSchedu void WorkSchedulerConnectionTest::SetUpTestCase() { std::shared_ptr workInfo = std::make_shared(); - workInfo->workId_ = 123; + workInfo->workId_ = WORK_ID; workInfo->bundleName_ = "com.unittest.bundleName"; workInfo->abilityName_ = "unittestAbility"; -- Gitee