| 15 | } |
| 16 | |
| 17 | TaskExecutionResult Execute(TaskExecutionMode mode) override { |
| 18 | if (mode == TaskExecutionMode::PROCESS_PARTIAL) { |
| 19 | std::this_thread::sleep_for(std::chrono::milliseconds(300)); |
| 20 | return TaskExecutionResult::TASK_NOT_FINISHED; |
| 21 | } |
| 22 | executor.FinishTask(); |
| 23 | return TaskExecutionResult::TASK_FINISHED; |
| 24 | } |
| 25 | }; |
| 26 | |
| 27 | TEST_CASE("TaskExecutor can execute partial tasks without busy spinning forever") { |
no test coverage detected