orca_service_end2end_test: increase flake timing tolerance (#29405)

reviewable/pr29432/r1
Mark D. Roth 3 years ago committed by GitHub
parent 6273832210
commit 55e870dae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      test/cpp/end2end/orca_service_end2end_test.cc

@ -71,7 +71,8 @@ class OrcaServiceEnd2endTest : public ::testing::Test {
if (last_response_time_.has_value()) { if (last_response_time_.has_value()) {
// Allow a small fudge factor to avoid test flakiness. // Allow a small fudge factor to avoid test flakiness.
const grpc_core::Duration fudge_factor = const grpc_core::Duration fudge_factor =
grpc_core::Duration::Milliseconds(50) * grpc_test_slowdown_factor(); grpc_core::Duration::Milliseconds(750) *
grpc_test_slowdown_factor();
auto elapsed = now - *last_response_time_; auto elapsed = now - *last_response_time_;
EXPECT_GE(elapsed, requested_interval_ - fudge_factor) EXPECT_GE(elapsed, requested_interval_ - fudge_factor)
<< elapsed.ToString(); << elapsed.ToString();

Loading…
Cancel
Save