diff --git a/services/test/src/workschedulerservice_test.cpp b/services/test/src/workschedulerservice_test.cpp index eb6f01be18474763bb9ce70cbf3c636be4f27584..e93d8d41b8765c9c85f92ba41cdc0c7b00922d62 100644 --- a/services/test/src/workschedulerservice_test.cpp +++ b/services/test/src/workschedulerservice_test.cpp @@ -944,29 +944,6 @@ HWTEST_F(WorkSchedulerServiceTest, AllowDump_001, TestSize.Level1) EXPECT_FALSE(ret); } -/** - * @tc.name: UpdateWorkBeforeRealStart_001 - * @tc.desc: Test WorkSchedulerService UpdateWorkBeforeRealStart. - * @tc.type: FUNC - * @tc.require: IAJSVG - */ -HWTEST_F(WorkSchedulerServiceTest, UpdateWorkBeforeRealStart_001, TestSize.Level1) -{ - std::shared_ptr workStatus = nullptr; - workSchedulerService_->UpdateWorkBeforeRealStart(workStatus); - - WorkInfo workInfo = WorkInfo(); - workStatus = std::make_shared(workInfo, 1); - workStatus->conditionMap_.clear(); - workSchedulerService_->UpdateWorkBeforeRealStart(workStatus); - - std::shared_ptr repeatCycle = std::make_shared(); - repeatCycle->boolVal = true; - workStatus->conditionMap_.emplace(WorkCondition::Type::TIMER, repeatCycle); - workSchedulerService_->UpdateWorkBeforeRealStart(workStatus); - EXPECT_TRUE(repeatCycle->intVal == 0); -} - /** * @tc.name: CheckEffiResApplyInfo_001 * @tc.desc: Test WorkSchedulerService CheckEffiResApplyInfo.