Skip to content

Commit

Permalink
Test: Detach server_t/client_t earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
htfy96 committed Jan 26, 2017
1 parent c781acf commit d0a931e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/worker_thread_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ TEST_CASE("multiple WorkerThread test", "[worker_thread]")
clientWorker.add_new_connection(cli_fd);
}


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

0 comments on commit d0a931e

Please sign in to comment.