tests/delayqueue_timecheck_unit_test.cc
TEST_F(DelayQueueTimeCheckUnitTest, SingleTask) {
  Task task(1000); // Delay time 1s
  auto task_future = delay_queue_.AddTask(task.delay_milliseconds_,
                                          std::bind(&Task::run, &task));
  // Wait for the task to complete
  task_future.get();
}
// Single task, ensure that the timing is correct
Single task, ensure that the timing is correct
Single task ensure that the timing is correct
TEST_F(DelayQueueTimeCheckUnitTest, SingleTask) {
  Task task(1000); 
  auto task_future = delay_queue_.AddTask(task.delay_milliseconds_,
                                          std::bind(&Task::run, &task));
  task_future.get();
}
TEST_F ( DelayQueueTimeCheckUnitTest , SingleTask ) { Task task ( 1000 ) ; auto task_future = delay_queue_ . AddTask ( task . delay_milliseconds_ , std :: bind ( & Task :: run , & task ) ) ; task_future . get ( ) ; }
Single task, ensure that the timing is correct
Single task ensure that the timing is correct
// Delay time 1s // Wait for the task to complete