Skip to content

Commit f9d8ffd

Browse files
authored
cleanup: increase absolute tolerance for timed tests (#8052)
1 parent ff09f3a commit f9d8ffd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

google/cloud/bigtable/polling_policy_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ grpc::Status GrpcTransientError() {
4444
}
4545

4646
using testing_util::chrono_literals::operator"" _ms;
47-
auto const kLimitedTimeTestPeriod = 50_ms;
48-
auto const kLimitedTimeTolerance = 10_ms;
47+
auto const kLimitedTimeTestPeriod = 100_ms;
48+
auto const kLimitedTimeTolerance = 20_ms;
4949

5050
/**
5151
* @test Verify that a polling policy configured to run for 50ms

google/cloud/bigtable/rpc_retry_policy_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Status PermanentError() {
4848

4949
using ::google::cloud::testing_util::chrono_literals::operator"" _ms;
5050

51-
auto const kLimitedTimeTestPeriod = 50_ms;
52-
auto const kLimitedTimeTolerance = 10_ms;
51+
auto const kLimitedTimeTestPeriod = 100_ms;
52+
auto const kLimitedTimeTolerance = 20_ms;
5353

5454
/**
5555
* @test Verify that a retry policy configured to run for 50ms works correctly.

google/cloud/internal/retry_policy_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ using LimitedErrorCountRetryPolicyForTest =
4343
::google::cloud::internal::LimitedErrorCountRetryPolicy<
4444
TestRetryablePolicy>;
4545

46-
auto const kLimitedTimeTestPeriod = std::chrono::milliseconds(50);
47-
auto const kLimitedTimeTolerance = std::chrono::milliseconds(10);
46+
auto const kLimitedTimeTestPeriod = std::chrono::milliseconds(100);
47+
auto const kLimitedTimeTolerance = std::chrono::milliseconds(20);
4848

4949
/**
5050
* @test Verify that a retry policy configured to run for 50ms works correctly.

google/cloud/polling_policy_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ using LimitedErrorCountRetryPolicyForTest =
4040
::google::cloud::internal::LimitedErrorCountRetryPolicy<
4141
TestRetryablePolicy>;
4242

43-
auto const kLimitedTimeTestPeriod = ms(50);
44-
auto const kLimitedTimeTolerance = ms(10);
43+
auto const kLimitedTimeTestPeriod = ms(100);
44+
auto const kLimitedTimeTolerance = ms(20);
4545

4646
/**
4747
* @test Verify that a polling policy configured to run for 50ms works

0 commit comments

Comments
 (0)