diff --git a/services/time_manager/test/unittest/src/time_service_test.cpp b/services/time_manager/test/unittest/src/time_service_test.cpp index a9daded..4e46e8b 100644 --- a/services/time_manager/test/unittest/src/time_service_test.cpp +++ b/services/time_manager/test/unittest/src/time_service_test.cpp @@ -343,22 +343,7 @@ HWTEST_F(TimeServiceTest, ProxyTimer002, TestSize.Level0) */ HWTEST_F(TimeServiceTest, ProxyTimer003, TestSize.Level0) { - auto timerInfo = std::make_shared(); - timerInfo->SetType(1); - timerInfo->SetRepeat(true); - timerInfo->SetInterval(5000); - timerInfo->SetWantAgent(nullptr); - timerInfo->SetCallbackInfo(TimeOutCallback1); - - auto timerId1 = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); - EXPECT_TRUE(timerId1 > 0); - auto ret = TimeServiceClient::GetInstance()->StartTimer(timerId1, 1000); - EXPECT_TRUE(ret); int32_t uid = IPCSkeleton::GetCallingUid(); - ret = TimeServiceClient::GetInstance()->ProxyTimer(uid, false); + auto ret = TimeServiceClient::GetInstance()->ProxyTimer(uid, false); EXPECT_FALSE(ret); - ret = TimeServiceClient::GetInstance()->StopTimer(timerId1); - EXPECT_TRUE(ret); - ret = TimeServiceClient::GetInstance()->DestroyTimer(timerId1); - EXPECT_TRUE(ret); } \ No newline at end of file