diff --git a/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp b/services/distributeddataservice/adapter/screenlock/test/screen_lock_test.cpp index 263c17dde0bcaaac5c4826fad9e989786205d38d..9374568e57385ac1ca1fa5a348bfa796271fd8a5 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(); + screenLock->executors_ = nullptr; } } // namespace \ No newline at end of file