Skip to content

Commit

Permalink
Merge branch 'main' into ns_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Nov 2, 2023
2 parents f3d9692 + 29e542c commit bf93cf1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/coro_io/tests/test_rate_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ TEST_CASE("test smooth_bursty_rate_limiter acquire multi permits") {
async_simple::coro::syncAwait(rate_limiter.acquire(1));
double cost = (current_time_mills() - start_mills) / 1000.0;
CHECK(cost > expected_cost - cost_diff);
CHECK(cost < expected_cost + cost_diff);
}

TEST_CASE("test smooth_bursty_rate_limiter single thread") {
Expand All @@ -53,7 +52,6 @@ TEST_CASE("test smooth_bursty_rate_limiter single thread") {
double cost = (current_time_mills() - start_mills) / 1000.0;

CHECK(cost > expected_cost - cost_diff);
CHECK(cost < expected_cost + cost_diff);
}

TEST_CASE("test smooth_bursty_rate_limiter multi coroutine") {
Expand Down Expand Up @@ -88,5 +86,4 @@ TEST_CASE("test smooth_bursty_rate_limiter multi coroutine") {
double cost = (current_time_mills() - start_mills) / 1000.0;

CHECK(cost > expected_cost - cost_diff);
CHECK(cost < expected_cost + cost_diff);
}

0 comments on commit bf93cf1

Please sign in to comment.