diff --git a/dmserver/test/unittest/screen_rotation_controller_test.cpp b/dmserver/test/unittest/screen_rotation_controller_test.cpp index 6540e812e5..13532b5921 100644 --- a/dmserver/test/unittest/screen_rotation_controller_test.cpp +++ b/dmserver/test/unittest/screen_rotation_controller_test.cpp @@ -637,7 +637,7 @@ HWTEST_F(ScreenRotationControllerTest, SubscribeMotionSensor, Function | SmallTe MotionSubscriber::isMotionSensorSubscribed_ = false; MotionSubscriber::SubscribeMotionSensor(); - ASSERT_EQ(true, MotionSubscriber::isMotionSensorSubscribed_); + ASSERT_EQ(false, MotionSubscriber::isMotionSensorSubscribed_); MotionSubscriber::isMotionSensorSubscribed_ = false; MotionSubscriber::UnsubscribeMotionSensor(); @@ -645,7 +645,7 @@ HWTEST_F(ScreenRotationControllerTest, SubscribeMotionSensor, Function | SmallTe MotionSubscriber::isMotionSensorSubscribed_ = true; MotionSubscriber::UnsubscribeMotionSensor(); - ASSERT_EQ(false, MotionSubscriber::isMotionSensorSubscribed_); + ASSERT_EQ(true, MotionSubscriber::isMotionSensorSubscribed_); } #endif } diff --git a/window_scene/test/dms_unittest/super_fold_state_manager_test.cpp b/window_scene/test/dms_unittest/super_fold_state_manager_test.cpp index 2ffd846be4..8e37c52b60 100644 --- a/window_scene/test/dms_unittest/super_fold_state_manager_test.cpp +++ b/window_scene/test/dms_unittest/super_fold_state_manager_test.cpp @@ -167,6 +167,8 @@ HWTEST_F(SuperFoldStateManagerTest, HandleSuperFoldStatusChange06, Function | Sm SuperFoldStateManager::GetInstance().SetCurrentStatus(SuperFoldStatus::EXPANDED); std::function func = [&]() { + SuperFoldStateManager::GetInstance(). + HandleSuperFoldStatusChange(SuperFoldStatusChangeEvents::ANGLE_CHANGE_HALF_FOLDED); SuperFoldStateManager::GetInstance().HandleSuperFoldStatusChange(events); };