Skip to content

Commit

Permalink
Test: Add more log for worker_thread_test
Browse files Browse the repository at this point in the history
  • Loading branch information
htfy96 committed Jan 26, 2017
1 parent 2836835 commit c781acf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/worker_thread_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ TEST_CASE("multiple WorkerThread test", "[worker_thread]")
call_must_ok(::close, "close", main_fd);
}};
main_t.detach();
INFO("Main thread detached");
cur_sleep_for(1s);
INFO("Start to create clientWorker");

detail::WorkerThread<ClientHandler> clientWorker(400, client_logger);
std::thread client_t {std::ref(clientWorker)};
Expand All @@ -148,7 +150,7 @@ TEST_CASE("multiple WorkerThread test", "[worker_thread]")
}


cur_sleep_for(1s);
cur_sleep_for(2s);
server_t.detach(); client_t.detach();
worker.stop(); clientWorker.stop();
cur_sleep_for(1s);
Expand Down

0 comments on commit c781acf

Please sign in to comment.