Skip to content

Commit

Permalink
now passing 1000 not just 100
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
  • Loading branch information
alyssawilk committed Jun 22, 2021
1 parent 4fc42c2 commit 8599b4b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ TEST_P(AdmissionControlIntegrationTest, HttpTest) {
}

// Given the current throttling rate formula with an aggression of 1, it should result in a ~80%
// throttling rate (default max_rejection_probability). Allowing an error of 7%.
EXPECT_NEAR(throttle_count / request_count, 0.80, 0.07);
// throttling rate (default max_rejection_probability). Allowing an error of 10%.
EXPECT_NEAR(throttle_count / request_count, 0.80, 0.10);

// We now wait for the history to become stale.
timeSystem().advanceTimeWait(std::chrono::seconds(120));
Expand Down Expand Up @@ -158,8 +158,8 @@ TEST_P(AdmissionControlIntegrationTest, GrpcTest) {
}

// Given the current throttling rate formula with an aggression of 1, it should result in a ~80%
// throttling rate (default max_rejection_probability). Allowing an error of 7%.
EXPECT_NEAR(throttle_count / request_count, 0.80, 0.07);
// throttling rate (default max_rejection_probability). Allowing an error of 10%.
EXPECT_NEAR(throttle_count / request_count, 0.80, 0.10);

// We now wait for the history to become stale.
timeSystem().advanceTimeWait(std::chrono::seconds(120));
Expand Down

0 comments on commit 8599b4b

Please sign in to comment.