From 1e6b2aa9b7b8db752e742b3b703385c047cc8855 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 16 Jun 2025 16:12:46 +0800 Subject: [PATCH 1/3] update Signed-off-by: yangliu --- .../adapter/screenlock/test/screen_lock_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp index 263c17dde..17f7d6172 100644 --- a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp +++ b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp @@ -123,5 +123,6 @@ HWTEST_F(ScreenLockTest, SubscribeScreenEvent001, TestSize.Level0) screenLock->SubscribeScreenEvent(); EXPECT_NE(screenLock->eventSubscriber_, nullptr); screenLock->UnsubscribeScreenEvent(); + sleep(1); } } // namespace \ No newline at end of file -- Gitee From fb05284cdda1c2a815c6a0f597b014976c9a8bc5 Mon Sep 17 00:00:00 2001 From: yangliu Date: Tue, 24 Jun 2025 20:24:23 +0800 Subject: [PATCH 2/3] update Signed-off-by: yangliu --- .../adapter/screenlock/test/screen_lock_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp index 17f7d6172..9a96a06b0 100644 --- a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp +++ b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp @@ -123,6 +123,6 @@ HWTEST_F(ScreenLockTest, SubscribeScreenEvent001, TestSize.Level0) screenLock->SubscribeScreenEvent(); EXPECT_NE(screenLock->eventSubscriber_, nullptr); screenLock->UnsubscribeScreenEvent(); - sleep(1); + screenLock->executors_ == nullptr; } } // namespace \ No newline at end of file -- Gitee From da9a5616e268f5755a02fa2f6d7bb9770f092984 Mon Sep 17 00:00:00 2001 From: yangliu Date: Tue, 24 Jun 2025 21:28:21 +0800 Subject: [PATCH 3/3] update Signed-off-by: yangliu --- .../adapter/screenlock/test/screen_lock_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp index 9a96a06b0..9374568e5 100644 --- a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp +++ b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp @@ -123,6 +123,6 @@ HWTEST_F(ScreenLockTest, SubscribeScreenEvent001, TestSize.Level0) screenLock->SubscribeScreenEvent(); EXPECT_NE(screenLock->eventSubscriber_, nullptr); screenLock->UnsubscribeScreenEvent(); - screenLock->executors_ == nullptr; + screenLock->executors_ = nullptr; } } // namespace \ No newline at end of file -- Gitee