From 2a09d4cef786e24aa6172ac079bc73c5f9a13f22 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:22:29 +0800 Subject: [PATCH] feat delete log --- tile/fiber/detail/fiber_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tile/fiber/detail/fiber_test.cc b/tile/fiber/detail/fiber_test.cc index 3481e44..dd4e852 100644 --- a/tile/fiber/detail/fiber_test.cc +++ b/tile/fiber/detail/fiber_test.cc @@ -7,7 +7,7 @@ namespace fiber { namespace detail { TEST(Fiber, Base) { - constexpr auto kMaxCnt = 5000; + constexpr auto kMaxCnt = 5000000; int cnt = 0; // 0 -> master fiber @@ -24,16 +24,14 @@ TEST(Fiber, Base) { ASSERT_EQ(Fiber::Current(), fibers[i].get()); ++cnt; Fiber::MasterFiber()->Resume(); - TILE_LOG_INFO("worke cnt: {}", cnt); } })); } while (cnt < kMaxCnt) { int old = cnt; - auto next_fiber = fibers[Random(1, 1)].get(); + auto next_fiber = fibers[Random(1, 9)].get(); - TILE_LOG_INFO("cnt: {}", cnt); next_fiber->Resume(); ASSERT_EQ(old + 1, cnt); ASSERT_EQ(Fiber::Current(), Fiber::MasterFiber());