Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Feb 6, 2025
1 parent f1e2b7a commit 3647e35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coro_rpc/tests/test_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
using namespace async_simple::coro;
std::string_view echo(std::string_view data) { return data; }
TEST_CASE("test parall coro_rpc call") {
auto s = easylog::logger<>::instance().get_min_severity();
easylog::logger<>::instance().set_min_severity(easylog::Severity::WARNING);
int thread_cnt = 100;
coro_rpc::coro_rpc_server server(thread_cnt, 9001);
coro_io::io_context_pool pool(thread_cnt);
Expand Down Expand Up @@ -61,9 +63,12 @@ TEST_CASE("test parall coro_rpc call") {
p2.get_future().wait();
pool.stop();
thrd.join();
easylog::logger<>::instance().set_min_severity(s);
};

TEST_CASE("test parall coro_rpc call2") {
auto s = easylog::logger<>::instance().get_min_severity();
easylog::logger<>::instance().set_min_severity(easylog::Severity::WARNING);
int thread_cnt = 100;
coro_rpc::coro_rpc_server server(thread_cnt, 9001);
coro_io::io_context_pool pool(thread_cnt);
Expand Down Expand Up @@ -102,4 +107,5 @@ TEST_CASE("test parall coro_rpc call2") {
p.get_future().wait();
pool.stop();
thrd.join();
easylog::logger<>::instance().set_min_severity(s);
};

0 comments on commit 3647e35

Please sign in to comment.